Esempio n. 1
0
 public EditFormProperties()
 {
     LoadingElapseTime = new ElapseTime();
     _ToolbarButtons   = new ToolbarButtons();
     _EditMode         = EditModeEnum.List;
     _VisibleToolbar   = true;
     _VisibleStatusbar = true;
     _IsLoadingRefresh = false;
     IsLoaded          = false;
 }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public override string ToString()
 {
     return(ElapseTime.ToString(@"hh:\mm:\ss"));
 }