Ext.Net.DatePicker.LoadPostData C# (CSharp) Method

LoadPostData() private method

private LoadPostData ( string postDataKey, NameValueCollection postCollection ) : bool
postDataKey string
postCollection NameValueCollection
return bool
        protected virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
        {
            this.HasLoadPostData = true;

            string val = postCollection[this.ConfigID.ConcatWith("_Input")];

            if (val.IsNotEmpty())
            {
                try
                {
                    this.SuspendScripting();
                    this.SelectedDate = DateTime.ParseExact(val, "yyyy\\-MM\\-dd\\THH\\:mm\\:ss", this.ResourceManager.CurrentLocale);
                }
                catch
                {
                    this.SelectedDate = (DateTime)this.EmptyValue;
                }
                finally
                {
                    this.ResumeScripting();
                }

                return true;
            }

            return false;
        }