Re: [mono-android] How to implement ViewPager from compatibility package .jar

2012-01-25 Thread Stuart Lodge
I don't suppose anyone has already done this and would like to share the source (just asking in case) If not, then I'll have a go... as I'd quite like to use the ViewPager in this app. On 23 January 2012 21:24, Jonathan Pryor wrote: > On Jan 21, 2012, at 7:36 AM, k0ng wrote: > > I want to use V

Re: [mono-android] How to implement ViewPager from compatibility package .jar

2012-01-25 Thread Stuart Lodge
plementation. > > On Jan 25, 2012 12:52 PM, "Stuart Lodge" wrote: > >> I don't suppose anyone has already done this and would like to share the >> source (just asking in case) >> >> If not, then I'll have a go... as I'd quite like to use the Vi

Re: [mono-android] Calling Static JNI methods?

2012-02-02 Thread Stuart Lodge
Josh, Jon - thanks for posting this Flurry code - very helpful! Seems to be working, plus I just added the extra call we need: _flurryLogEvent = JNIEnv.GetStaticMethodID(_flurryClass, "logEvent", "(Ljava/lang/String;)V"); called via ExceptionSafe(() => JNIEnv.CallStaticV

[mono-android] An interface for FindViewById<> ?

2012-02-02 Thread Stuart Lodge
I'm writing lots of databinding-type-code at the moment and keep finding myself needing to write duplicate wrapper functions for FindViewById<> - because both Activity and View seem to support it, but neither of them is the same interface. Is there any way I can get an extension method to think

Re: [mono-android] How to implement ViewPager from compatibility package .jar

2012-02-04 Thread Stuart Lodge
heesebaron/MonoDroid.HorizontalPager > > > > Great job! > > Thanks. > > > > may I put it together as VS item template? > > ... and publish it of course ... > > > > regards > > > > mel > > > > > > It works in a similar mann

[mono-android] Location problems - privates look good but public looks wrong

2012-02-06 Thread Stuart Lodge
I'm looking at some Location traces right now where the Andtroid.Locations.Location object has good mLatitude and mLongitude private values, but has seemingly garbage public Latitude and Longitude property values For example. the debug trace for the object is: {Location[mProvider=network,mTime=13

Re: [mono-android] Location problems - privates look good but public looks wrong

2012-02-06 Thread Stuart Lodge
er? > > If you use something like Console.WriteLine are the values correct? > > Jonathan > > > On 2/6/2012 5:42 AM, Stuart Lodge wrote: > >> I'm looking at some Location traces right now where the >> Andtroid.Locations.Location object has good mLatitude and mL

Re: [mono-android] Location problems - privates look good but public looks wrong

2012-02-06 Thread Stuart Lodge
, and nowhere near any map or network code. Hopefully we'll never see it again :) Stuart On 6 February 2012 21:31, Miljenko Cvjetko wrote: > Hi > > On 2012.02.06 16:39, Stuart Lodge wrote: > > The values were wrong in debugger and in Trace. > > What's more I also

[mono-android] Anyone interested in Silverlight style DataBinding for Droid?

2012-02-21 Thread Stuart Lodge
If anyone else out there is porting from WP7 to Droid and is looking for some MonoDroid Databinding code, then I've posted some as part of MvvmCross over on GitHub - https://github.com/slodge/MvvmCross/wiki/Tutorial The full story is quite long... but the short story is that the code lets you add

Re: [mono-android] [MonoTouch] sharing code between mono touch and mono for android

2012-02-27 Thread Stuart Lodge
I'm with you on some of the refactoring pain thing. I'm work 95% of the time in VS2010 using your plugin to make R# do something. I'm currently sharing as much code as I possibly across all 3 platforms by trying to use mvvm with all viewmodels, models, etc in a "shared project". I generally don't

Re: [mono-android] [MonoTouch] sharing code between mono touch and mono for android

2012-02-28 Thread Stuart Lodge
I like that Norway flights example - wish I'd seen that earlier! I've personally found that as long as you put as much of your code as possible into the shared ViewModel and lower classes (Model, Services, BL, DAL, whatever, ...) inside their own project, then refactoring isn't too painful - it's

Re: [mono-android] .net versions: why different?

2012-03-01 Thread Stuart Lodge
> > > > I have a simple request: make MT and MfA able to reference (and use) WP7 > targeted libraries in Visual Studio. > > I don't foresee this happening. However, we are looking into the next best > thing: Portable Library Project v2.0 assembly support, as is used with > Metro. There should be sa

Re: [mono-android] Interesting bug found...

2012-03-01 Thread Stuart Lodge
If you think MonoDroid had problems... http://www.zdnet.com/blog/microsoft/microsofts-windows-azure-has-a-meltdown/12076 On 1 March 2012 17:09, Paul Johnson wrote: > Hi, > > As you all know yesterday was the 29th Feb. While C# acknowledge this with > no problems, monodroid thought is was the 1s

Re: [mono-android] Nothing being passed back from a webservice

2012-03-02 Thread Stuart Lodge
At a guess, it's to do with timing. You could be returning your list f from your function before the Async network call has occurred. To get around this, change your method from: private List DoThis() to: private void DoThisAndCallMeBack(Action> callback) And then modify the return stat

Re: [mono-android] Nothing being passed back from a webservice

2012-03-02 Thread Stuart Lodge
Passing in an Action is an asynchronous programming trick - I think this is "functional programming" (and someone will hopefully correct me if I'm wrong. Basically you would declare your method like: private void getUpcomingRaces(Action> callback) { ... } Then you would call it with: priv

Re: [mono-android] Asynchronous display pics into listview

2012-03-19 Thread Stuart Lodge
There are several ways to get something like this to work. One simple way is to maintain a dictionary of row numbers (position) to ImageView's - that way the row number can be your unique number. You do of course need to make sure that your dictionary is kept up to date if your convertView's get

Re: [mono-android] MonoTouch.Dialog equivalent

2012-03-24 Thread Stuart Lodge
I hope you don't mind me asking but what are the scenarios you choose to use the dialog approach for on Android? I use it lots on MonoTouch - as it helps a heap with layout. But on Android I've not used it (yet) - I guess mainly because LinearLayout, RelativeLayout, etc all make layout much ea

Re: [mono-android] multithread on a listview

2012-03-27 Thread Stuart Lodge
It sounds to me like you have a problem in your adapter - probably with the way you are referencing the individual list view items. Can you post any of your adapter code? On 27 March 2012 13:30, michelw wrote: > Hello. > > I've a listview with pics, and unique id for each pic. > > I've a separa

Re: [mono-android] using a checkbox in a listview

2012-03-28 Thread Stuart Lodge
Not quite a checkbox in a listbox - and not multi-selection - but the favorite buttons in the Conference example apps behave a bit like checkboxes and those apps still allow item selection - see: - https://github.com/xamarin/mobile-samples/blob/master/MWC/MWC.Droid/Resources/Layout/SessionListItem

Re: [mono-android] Services, Activities, Contexts and separation of concerns

2012-03-30 Thread Stuart Lodge
I'm a long term user of opennetcf code too, so happy to try to give something back :) All my code currently is built around mvvm and we use IoC throughout (actually it's OpenNetCf-based!) Our android location manager is https://github.com/slodge/MvvmCross/blob/master/Cirrious/Cirrious.MvvmCross/A

[mono-android] Some sln files opening as hex?

2012-05-05 Thread Stuart Lodge
Hi All Recently I've had some .sln files refuse to open in MonoDevelop - basically it just opens them for edit as binary files rather than as solutions. I'm not sure if this is because I've installed too much VS11 stuff on my dev box, or if it's a change in MonoDevelop... Anyone else seen this?

Re: [mono-android] Some sln files opening as hex?

2012-05-07 Thread Stuart Lodge
You should be able to change it back to version 11.00. > > We should probably tell the MonoDevelop guys... > > Matthew > > > > On Sat, May 5, 2012 at 9:12 PM, Stuart Lodge wrote: > >> Hi All >> >> Recently I've had some .sln files refuse to open in Mo

Re: [mono-android] Fwd: Some sln files opening as hex?

2012-05-07 Thread Stuart Lodge
Also gone to https://bugzilla.xamarin.com/show_bug.cgi?id=4919 On 7 May 2012 11:19, Matthew Leibowitz wrote: > Just to add this to the mailing list as I forgot to cc it in... > > > -- Forwarded message ------ > From: Stuart Lodge > Date: Mon, May 7, 2012 at 12:1

Re: [mono-android] sharing code between mono touch and mono for android

2012-05-14 Thread Stuart Lodge
I'm still pushing this PCL topic as far as I can - and I'm getting close now - it's looking really good :) I can now build all of MonoDroid, MonoTouch and WP7 in VS2010... And I can run MonoDroid and WP7 with portable class libraries It's just MonoTouch in MonoDevelop that I'm currently to cl

Re: [mono-android] Regarding Portable

2012-05-14 Thread Stuart Lodge
Hi Sri I think the problem you are seeing is that Portable Class Libaries are built against a set of DLLs which includes a strong reference to the System.Net types being in System.Net.dll To get around this, I've written a type forwarding assembly for System.Net for MonoDroid - see https://githu

Re: [mono-android] Regarding Portable

2012-05-14 Thread Stuart Lodge
eed encouraged to support this even more :) On 14 May 2012 10:52, Stuart Lodge wrote: > Hi Sri > > I think the problem you are seeing is that Portable Class Libaries are > built against a set of DLLs which includes a strong reference to the > System.Net types being in System.N

Re: [mono-android] Regarding Portable

2012-05-14 Thread Stuart Lodge
here won't be any conflict with any Microsoft assembly. The posts by Jeremy Likeness help to explain all this - but it took me a few readings to really understand them - http://csharperimage.jeremylikness.com/2012/03/understanding-portable-library-by.html On 14 May 2012 11:00, Stuart Lodge

Re: [mono-android] Regarding Portable

2012-05-14 Thread Stuart Lodge
ur Forwarder.cs I > was not able to compile. > > Any advice would be greatly appreciated. > > Best Regards, > Sridharan Srinivasan > Alias Sri. > > > On Mon, May 14, 2012 at 6:14 PM, Stuart Lodge wrote: > > And a final final answer > > > >&g

Re: [mono-android] Regarding Portable

2012-05-14 Thread Stuart Lodge
ferencing errors which are weird. > > I will get back to this after I have cleaned up the System.Web > MonoDroid/MonoTouch Project and publish it in GitHub for others more > intelligent than me to look and port to a Portable project. > > Thanks for all the help. >

[mono-android] Invalid bridge callback version. V4.2 - What's it mean?

2012-05-16 Thread Stuart Lodge
After upgrading from the alpha to release of 4.2 I'm seeing this error when starting the autocomplete sample - http://slodge.blogspot.co.uk/2012/05/monodroid-mvvmcross-experiment-in.html I don't understand what it means at all and the stack trace is nonexistent - seems to be somewhere native befor

[mono-android] 4.2 - The "GenerateJavaStubs" task failed unexpectedly.

2012-05-16 Thread Stuart Lodge
I'm tracking down a few problems at present on building old projects now I've moved up to 4.2 This project seems to build but then fails at the java stubs generation with a stack trace as below. Any idea how I can work out what I need to fix here? Thanks Stuart P.S. 80% of projects are buildin

[mono-android] Debugger disconnects from running code with VMDisconnectedException

2012-05-16 Thread Stuart Lodge
This dialog came up while an app was running in the debugger in 4.2 from VS2010 - nothing obvious went wrong in the app. http://i.imgur.com/x2zCb.png recent debug output window looked like: 05-16 15:10:18.190 D/dalvikvm(16310): GC_EXTERNAL_ALLOC freed 103K, 47% free 2972K/5511K, external 1186K/1

Re: [mono-android] Debugger disconnects from running code with VMDisconnectedException

2012-05-16 Thread Stuart Lodge
I've tried to repro this... Have only managed to repro it once in 20 minutes and that was with a complete phone hang. So not sure at present - will try again tomorrow! Stuart On 16 May 2012 16:14, Stuart Lodge wrote: > This dialog came up while an app was running in the debugger in

Re: [mono-android] 4.2 - The "GenerateJavaStubs" task failed unexpectedly.

2012-05-16 Thread Stuart Lodge
Thanks Jon My build for repro-ing this is a little complicated - it involves unsupported PCLs... but it was building on the previous alpha. Hopefully Kuma's repro is more straight-forward Stuart On 16 May 2012 16:18, Jonathan Pryor wrote: > On May 16, 2012, at 8:16 AM, Stuart Lod

[mono-android] Problems starting an app in 4.2 from VS2010

2012-05-16 Thread Stuart Lodge
Since installing 4.2 I've hit a problem where I can't seem to run apps deployed from VS2010 on my Galaxy Note. The app simply doesn't start at all - e.g. see this trace: 05-16 09:26:03.125 I/ActivityThread( 5306): Pub Tutorial.UI.Droid.__mono_init__: mono.MonoRuntimeProvider 05-16 09:26:03.125 D/

Re: [mono-android] Problems starting an app in 4.2 from VS2010

2012-05-16 Thread Stuart Lodge
lanes/monodroid-mac-4.2-series/bb1beee2/source/monodroid/builds/install/mono-armv7/etc/mono/assemblies/Cirrious.MvvmCross/Cirrious.MvvmCross.config'. 05-16 17:04:00.720 D/Mono( 6717): Assembly Loader probing location: '/Users/builder/data/lanes/monodroid-mac-4.2-series/bb1beee2/source

Re: [mono-android] Problems starting an app in 4.2 from VS2010

2012-05-16 Thread Stuart Lodge
.html and http://slodge.blogspot.co.uk/2012/04/using-portable-library-tools-for.html Now I'll go look at the Json problem - thanks for the help :) On 16 May 2012 18:40, Jonathan Pryor wrote: > On May 16, 2012, at 1:11 PM, Stuart Lodge wrote: > > Important note: the code below loads

Re: [mono-android] Problems starting an app in 4.2 from VS2010

2012-05-16 Thread Stuart Lodge
failed on the next file along (NewtonSoft.Json) instead If it helps, this was building in the previous version (including the 4.2 alpha) More to follow Stuart On 16 May 2012 20:39, Stuart Lodge wrote: > I knew it was a mistake sending you the trace from the PCL version > > Bef

Re: [mono-android] Problems starting an app in 4.2 from VS2010

2012-05-17 Thread Stuart Lodge
wrote: > On May 16, 2012, at 4:03 PM, Stuart Lodge wrote: > > But what I think the problem is any file which is not directly > referenced. > > All assemblies to be deployed to the device must be directly referenced by > the applicatio

Re: [mono-android] Invalid bridge callback version. V4.2 - What's it mean?

2012-05-17 Thread Stuart Lodge
, 2012, at 6:47 AM, Stuart Lodge wrote: > > After upgrading from the alpha to release of 4.2 > > Your upgrade is apparently incomplete. The "Invalid bridge callback > version. Expected 2 but got -2126498020" message is coming from Mono's GC: > > > https://git

Re: [mono-android] Problems starting an app in 4.2 from VS2010

2012-05-17 Thread Stuart Lodge
Hope you are enjoying the conversation :) I really think you should pull in all the implicit references. My main reason is because this is what .Net developers are used to... it's what WPF, ASP, SL, WP7, etc all do My second reason is because if you don't support implicit references, then all yo

Re: [mono-android] 4.2.1 - "Could not find file" ...bin\debug on deploy

2012-05-17 Thread Stuart Lodge
> We are exploring PLP support for a future release. And PLPs already work pretty darned well in the current release :) ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid

Re: [mono-android] Problems starting an app in 4.2 from VS2010

2012-05-17 Thread Stuart Lodge
nces again :) Maybe it's my fault for having lots of small DLLs? But the reason I have lots of small DLLs is so I can try to reduce the size of the deployed image in MonoTouch. Stuart On 17 May 2012 20:59, Stuart Lodge wrote: > Hope you are enjoying the conversation :) > > I really

Re: [mono-android] 4.2 - The "GenerateJavaStubs" task failed unexpectedly.

2012-05-17 Thread Stuart Lodge
I've tried to solve it but not got far... so I've logged my build problem as an issue. The solution this is occurring in is "fairly large" and includes PLPs, WP7, MonoDroid, MonoTouch and WinRT projects - so it might be easier if you can lead me towards more diagnostic information rather than tryi

Re: [mono-android] Problems starting an app in 4.2 from VS2010

2012-05-17 Thread Stuart Lodge
Yippee :) Although I have now spent an hour adding references One other question I did: adb shell setprop debug.mono.env MONO_LOG_LEVEL=info adb shell setprop debug.mono.log gref,gc How do I undo this - I couldn't find the answer on http://docs.xamarin.com/android/advanced

Re: [mono-android] 4.2.1 - "Could not find file" ...bin\debug on deploy

2012-05-18 Thread Stuart Lodge
PLP are (I think) Portable Library Projects They're also called Portable Class Libraries At the .Net level I think they are just class libraries which come with guarantees that they will only reference certain limited framework subsets (called profiles) which means you can safely use the same bin

Re: [mono-android] Code sharing between MonoDroid and MonoTouch

2012-05-25 Thread Stuart Lodge
Check out monocross and mvvmcross for some ideas (disclaimer - mvvmcross is my baby) For example, an mwc-like application might become https://github.com/slodge/MvvmCrossConference in mvvmcross For "business logic" project sharing I'm trying hard right now to use Portable Class Libraries to remov

Re: [mono-android] 4.2 - The "GenerateJavaStubs" task failed unexpectedly.

2012-05-25 Thread Stuart Lodge
My problem for this has been solved now! Thanks for the help on bugzilla - and the improved output on 4.2.2 My problem was down to an old dll still being referenced. The new debug info helped me identify that. Stuart On 21 May 2012 22:39, Jonathan Pryor wrote: > On May 17, 2012, at 4:58 PM

Re: [mono-android] DatePicker missing properties

2012-05-30 Thread Stuart Lodge
Both of those are "*Since: *API Level 11; API Level 11" - HoneyComb or later Try changing your Minimum Android Target to 3.1 or later in the project properties dialog Stuart On 30 May 2012 06:45, pdonovan wrote: > I'm trying to implement a simple inline date picker using Mono for Android > 4.

Re: [mono-android] DatePicker missing properties

2012-05-30 Thread Stuart Lodge
I get autocomplete in vs2010, but only after shutting and reopening the project Stuart On Thursday, 31 May 2012, pdonovan wrote: > Thank you. I had my main project configured correctly, but had failed to > check the project that was actually trying to use the DatePicker. It had > Build -> Genera

Re: [mono-android] Sending object between activities

2012-06-01 Thread Stuart Lodge
If you can use serialization to achieve this, then that's a good way. If you instead choose to use a singleton or some other "in memory" solution, then please be aware of the Activity lifecycle - http://docs.xamarin.com/android/tutorials/Activity_Lifecycle - please consider that the Android OS is

Re: [mono-android] Click event in Custom Adapter fire multiple positions

2012-06-07 Thread Stuart Lodge
My guess is that you are reusing the ConvertView cells in: public override View GetView(int position, View convertView, ViewGroup parent) You only need to subscribe to the events the first time you create each "row". When you scroll down/up and Android reuses the rows, then you need

[mono-android] Intel Emulator with maps?

2012-06-12 Thread Stuart Lodge
I love the Intel Emulator - makes the code actually run :) However, I don't seem to be able to get an Intel x86 emulator image with Google maps also installed. Does anyone know how to achieve this? Thanks Stuart ___ Monodroid mailing list Monodroid@li

[mono-android] 4.2.3 - problem renaming axml file

2012-06-12 Thread Stuart Lodge
Trying to rename an axml file in VS2010 Error message is about the file being locked - I think it is locked by Java Platform SE - is this something to do with the designer? Do you want me to log this on bugzilla? Stuart ___ Monodroid mailing list Monod

Re: [mono-android] debugger constantly detaches

2012-06-13 Thread Stuart Lodge
I'm seeing a few of these events too in 4.2.3 - and seeing these errors during the detach http://mono-for-android.1047100.n5.nabble.com/file/n5710267/monodebugexception.png Glad to hear you are already on it :) On 13 June 2012 20:12, Jonathan Pryor wrote: > On Jun 13, 2012, at 2:55 PM, Jonathan

Re: [mono-android] Intel Emulator with maps?

2012-06-14 Thread Stuart Lodge
the inside track :) Stuart On 13 June 2012 11:35, Marek Habersack wrote: > On 2012-06-12 16:55, Jonathan Pryor wrote: > >> On Jun 12, 2012, at 10:22 AM, Stuart Lodge wrote: >> >>> However, I don't seem to be able to get an Intel x86 emulator image with >>> G

[mono-android] Anyone integrated Aviary into a MonoDroid app yet?

2012-06-26 Thread Stuart Lodge
Just about to try this: http://www.aviary.com/android-documentation#create-new Anyone else already tried it? Did you hit any problems - e.g. with the Java interop or with the Android Manifest editing? Will let you know how we get on :) Stuart ___ Monod

Re: [mono-android] debugger breakpoints 4.4.41

2013-01-16 Thread Stuart Lodge
I'm seeing some of this too Plus I'm seeing the ongoing issues of PCLs not debugging in VS2012 (but fine in VS2010) Will try checking some of the csproj file settings Stuart On 16 January 2013 23:44, pauldb wrote: > I'm going on memory here, but I think I tried all combinations of Shared

Re: [mono-android] Does plugin architecture supported in mono framework??

2013-01-26 Thread Stuart Lodge
That's exactly the way plugins work on MonoDroid in Mvx too - seems to work great. You just add the plugin as a reference and can then call Assembly.Load at runtime. Code in https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross/Plugins/MvxFileBasedPluginManager.cs I think you

Re: [mono-android] intellisense not working in .axml files

2013-02-16 Thread Stuart Lodge
All I can tell you is that it works sometimes I really haven't worked out what the problem is - it's not file related - it's something to do with state inside VS I wish I knew On 16 February 2013 05:59, krish wrote: > me also same problem...can any one say how to again work intellisens

Re: [mono-android] Monodroid sliding menu

2013-02-16 Thread Stuart Lodge
I've used a couple of sliding menus I seem to remember using this code from the Xamarin samples: https://github.com/xamarin/monodroid-samples/tree/master/SlidingMenu And then I also used https://github.com/superlogical/SlidingMenuMonodroid I had issues with both - not big ones - but some probl

Re: [mono-android] AutoCompleteTextView

2013-05-01 Thread Stuart Lodge
I have done this with the Google Books api I made a sample for Mvx - it's not currently live on v3 but you can see it on v2 at https://github.com/slodge/MvvmCross/tree/vnext/Sample%20-%20SimpleDialogBinding/DroidAutoComplete Here's what i wrote at the time - http://slodge.blogspot.co.uk/2012/05/m

Re: [mono-android] "Take a Picture and Save Using Camera App" example fails with Java.Lang.OutOfMemoryError

2013-05-01 Thread Stuart Lodge
For that memory load issue, I think that Recipe should be updated. Make sure you are using inPurgeable too See http://slodge.blogspot.co.uk/2013/02/huge-android-memory-bug-and-bug-hunting.html Stuart On 1 May 2013 21:57, Igor Velikorossov wrote: > Thank you Jon, I'll study the other example.

Re: [mono-android] "Take a Picture and Save Using Camera App" example fails with Java.Lang.OutOfMemoryError

2013-05-02 Thread Stuart Lodge
05:22, Tom Opgenorth wrote: > Huh. Interesting tip. Thanks a bunch Stuart. Updated the code. > > On Wed, May 1, 2013 at 3:16 PM, Stuart Lodge wrote: > > For that memory load issue, I think that Recipe should be updated. > > > > Make sure you are using inPurg

[mono-android] HTTPs problems

2011-11-15 Thread Stuart Lodge
Hi I'm finding that I get an exception when I try to download content from any HTTPs address. Basic code I'm trying is: var wc = new WebClient (); var test1 = wc.DownloadString("http://www.google.com";); var test2 = wc.DownloadString("https://www.google.com";) http succe

Re: [mono-android] HTTPs problems

2011-11-16 Thread Stuart Lodge
te: > What version of MonoDroid are you using? That same snippet of code works > just fine on my phone. I'm using the beta version 1.9.2 > Mike Child > > > On Tue, Nov 15, 2011 at 11:12 PM, Stuart Lodge wrote: >> >> Hi >> I'm finding that I get an exce

[mono-android] LogCatControl - format problem - vs2010 plugin

2011-11-22 Thread Stuart Lodge
Hi I'm seeing this error reported by Vs2010 quite frequently - causes a VS2010 restart :( Hope the partial stack trace helps... Stuart Exception Type: System.FormatException Exception Message: String was not recognized as a valid DateTime. Exception Stack Trace:at System.DateTimeParse.Parse