Beispiel #1
0
        private void DockingSavedWindows(Window window, PanelEnum panelEnum)
        {
            if (window == null) return;

            var w = new SystemWindow(window.ClassName, window.Title);

            if (Settings.Instance.EnableLogger)
                Logger.Debug("(MainForm - DockingSavedWindows) Window exists: {0}", w.Exists);

            if (!w.Exists) return;
            DockToPanel(w, panelEnum);

            switch (panelEnum)
            {
                case PanelEnum.First:
                    _firstWindow = w;
                    break;
                case PanelEnum.Second:
                    _secondWindow = w;
                    break;
            }
        }
Beispiel #2
0
        public void Clean()
        {
            Logger.Debug("(Settings - Clean) Cleaning settings.");

            Windows = new Window[WindowsLength];
        }
Beispiel #3
0
 public TempSettings(Window[] windows, int splitterDistance, bool enableLogger, string version, string[] filters)
 {
     Windows = windows;
     SplitterDistance = splitterDistance;
     EnableLogger = enableLogger;
     Version = version;
     Filters = filters;
 }