public EditFormProperties() { LoadingElapseTime = new ElapseTime(); _ToolbarButtons = new ToolbarButtons(); _EditMode = EditModeEnum.List; _VisibleToolbar = true; _VisibleStatusbar = true; _IsLoadingRefresh = false; IsLoaded = false; }
private void Initialize() { if (!this.DesignMode) { if (GlobalVar.Settings.GetValue("FORM_SKIN").IsNullOrEmpty() == false) { this.LookAndFeel.UseDefaultLookAndFeel = barAndDockingController.LookAndFeel.UseDefaultLookAndFeel = false; this.LookAndFeel.SetSkinStyle(GlobalVar.Settings.GetValue("FORM_SKIN").ToStringNullToEmpty()); barAndDockingController.LookAndFeel.SetSkinStyle(GlobalVar.Settings.GetValue("FORM_SKIN").ToStringNullToEmpty()); } else { this.LookAndFeel.UseDefaultLookAndFeel = barAndDockingController.LookAndFeel.UseDefaultLookAndFeel = true; } barTools.OptionsBar.AllowQuickCustomization = false; ToolbarButtons = new ToolbarButtons(); LoadingElapseTime = new ElapseTime(); IsLoaded = false; if (Name.EndsWith("EditForm")) { EditMode = EditModeEnum.New; } else { EditMode = EditModeEnum.List; } } else { this.LookAndFeel.UseDefaultLookAndFeel = barAndDockingController.LookAndFeel.UseDefaultLookAndFeel = true; } }
public override string ToString() { return(ElapseTime.ToString(@"hh:\mm:\ss")); }