Ejemplo n.º 1
0
        private void ShowSettingWindow()
        {
            try {
                if (!fNowOptionShowing)
                {
                    using (SettingWindow sw = new SettingWindow(new Rectangle(pntInitial, sizeInitial), ConfigValues, ResizeDelta, pluginServer.ExplorerHandle, dicPresets, startingPreset)) {
                        fNowOptionShowing = true;
                        if (sw.ShowDialog() == DialogResult.OK)
                        {
                            sizeInitial    = sw.InitialSize;
                            pntInitial     = sw.InitialLocation;
                            ConfigValues   = sw.ConfigValues;
                            ResizeDelta    = sw.ResizeDelta;
                            dicPresets     = sw.Presets;
                            startingPreset = sw.StartingPreset ?? String.Empty;

                            SaveSettings();
                        }
                        fNowOptionShowing = false;
                    }
                }
            }
            catch (Exception ex) {
                MessageBox.Show(ex.ToString());
            }
        }
Ejemplo n.º 2
0
        private void ShowSettingWindow() {
            try {
                if(!this.fNowOptionShowing) {
                    using(SettingWindow sw = new SettingWindow(new Rectangle(this.pntInitial, this.sizeInitial), this.ConfigValues, ResizeDelta, this.pluginServer.ExplorerHandle, this.dicPresets, this.startingPreset)) {
                        this.fNowOptionShowing = true;
                        if(sw.ShowDialog() == DialogResult.OK) {
                            this.sizeInitial = sw.InitialSize;
                            this.pntInitial = sw.InitialLocation;
                            this.ConfigValues = sw.ConfigValues;
                            this.ResizeDelta = sw.ResizeDelta;
                            this.dicPresets = sw.Presets;
                            this.startingPreset = sw.StartingPreset;
                            if(this.startingPreset == null)
                                this.startingPreset = String.Empty;

                            this.SaveSettings();
                        }
                        this.fNowOptionShowing = false;
                    }
                }
            }
            catch(Exception ex) {
                MessageBox.Show(ex.ToString());
            }
        }
Ejemplo n.º 3
0
        private void ShowSettingWindow() {
            try {
                if(!fNowOptionShowing) {
                    using(SettingWindow sw = new SettingWindow(new Rectangle(pntInitial, sizeInitial), ConfigValues, ResizeDelta, pluginServer.ExplorerHandle, dicPresets, startingPreset)) {
                        fNowOptionShowing = true;
                        if(sw.ShowDialog() == DialogResult.OK) {
                            sizeInitial = sw.InitialSize;
                            pntInitial = sw.InitialLocation;
                            ConfigValues = sw.ConfigValues;
                            ResizeDelta = sw.ResizeDelta;
                            dicPresets = sw.Presets;
                            startingPreset = sw.StartingPreset ?? String.Empty;

                            SaveSettings();
                        }
                        fNowOptionShowing = false;
                    }
                }
            }
            catch(Exception ex) {
                MessageBox.Show(ex.ToString());
            }
        }