private void Initialize(B1FormInitializePar InitPar) { try { this.CurrentForm.Freeze(true); IList <Scheme> list = default(IList <Scheme>); Scheme = list; LoadSchemeCodes(); this.CurrentForm.DataSources.UserDataSources.Item(UDS_CYCLE).Value = "1"; this.CurrentForm.DataSources.UserDataSources.Item(UDS_DATE_FROM).Value = date_time_list.Where(c => c.Key.Equals(1)).FirstOrDefault().Value.Key.ToString("yyyyMMdd"); this.CurrentForm.DataSources.UserDataSources.Item(UDS_DATE_TO).Value = date_time_list.Where(c => c.Key.Equals(1)).FirstOrDefault().Value.Value.ToString("yyyyMMdd"); this.CurrentForm.Items.Item(EDT_DATE_FROM).Enabled = false; this.CurrentForm.Items.Item(EDT_DATE_TO).Enabled = false; UnFold(); } catch (Exception ex) { throw ex; } finally { this.CurrentForm.Freeze(false); } }
protected override void InitializeForm(B1FormInitializePar InitPar) { Initialize(InitPar); }