示例#1
0
 public MainStandardForm(bool disableEditing, SaveBehavoir saveBehav)
 {
     IsLayoutLoaded = false;
     //
     // Necessario per il supporto di Progettazione Windows Form
     //
     InitializeComponent();
     inizializza();
 }
示例#2
0
        public UpdatableStandardForm(bool disableEditing, SaveBehavoir saveBehav) : base()
        {
            if (!DesignMode)
            {
                IsNew = false;
                IsSingleTransaction = true;
                CancelClosing = false;
                //
                // Necessario per il supporto di Progettazione Windows Form
                //
                InitializeComponent();

                ultraToolbarsManagerStandard.ToolClick += ToolbarToolClick;

                if (NewSmallIcon != null)
                    ultraToolbarsManagerStandard.Tools["New"].SharedProps.AppearancesSmall.Appearance.Image =
                        NewSmallIcon;
                if (NewLargeIcon != null)
                    ultraToolbarsManagerStandard.Tools["New"].SharedProps.AppearancesLarge.Appearance.Image =
                        NewLargeIcon;

                // Riposiziono gli elementi della status bar
                UltraStatusPanel panelError =
                    standardFormStatus.Panels["GenericError"];
                UltraStatusPanel panelDirty = standardFormStatus.Panels["DirtyForm"];
                UltraStatusPanel panelCopy = null;
                if (standardFormStatus.Panels.Exists("Copy"))
                    panelCopy = standardFormStatus.Panels["Copy"];

                standardFormStatus.Panels.Remove(panelError);
                standardFormStatus.Panels.Remove(panelDirty);

                if (panelCopy != null)
                {
                    standardFormStatus.Panels.Remove(panelCopy);
                    standardFormStatus.Panels.Insert(0, panelCopy);
                }

                standardFormStatus.Panels.Insert(0, panelDirty);
                standardFormStatus.Panels.Insert(0, panelError);

                //
                // TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent
                //
                SaveBehavoir = saveBehav;
                _disableEditing = disableEditing;

            }
        }
示例#3
0
 public MainStandardForm(SaveBehavoir saveBehav) : this(true, saveBehav)
 { }
示例#4
0
 public UpdatableStandardForm(SaveBehavoir saveBehav) : this(true, saveBehav)
 { }