Наследование: Common.Controls.BaseForm
Пример #1
0
        private void SetupDisplay()
        {
            using (DisplaySetup form = new DisplaySetup()) {
                DialogResult dr = form.ShowDialog();

                if (dr == DialogResult.OK)
                {
                    VixenSystem.SaveSystemConfig();
                }
                else
                {
                    VixenSystem.ReloadSystemConfig();
                }
            }
        }
Пример #2
0
        private async void SetupDisplay()
        {
            using (DisplaySetup form = new DisplaySetup()) {
                DialogResult dr = form.ShowDialog();

                if (dr == DialogResult.OK)
                {
                    await VixenSystem.SaveSystemAndModuleConfigAsync();
                }
                else
                {
                    VixenSystem.ReloadSystemConfig();
                }
            }
        }
Пример #3
0
        private void buttonSingleSetup_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("Please note: this new setup form is still in active development. There will be bugs! Make sure you backup your configuration in case it breaks something.", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);

            if (dr == DialogResult.Cancel)
            {
                return;
            }

            using (DisplaySetup form = new DisplaySetup()) {
                dr = form.ShowDialog();
            }

            if (dr == DialogResult.OK)
            {
                VixenSystem.SaveSystemConfig();
            }
            else
            {
                VixenSystem.ReloadSystemConfig();
            }
        }
Пример #4
0
        private void SetupDisplay()
        {
            using (DisplaySetup form = new DisplaySetup()) {
                DialogResult dr = form.ShowDialog();

                if (dr == DialogResult.OK) {
                    VixenSystem.SaveSystemConfig();
                }
                else {
                    VixenSystem.ReloadSystemConfig();
                }
            }
        }
Пример #5
0
        private void buttonSingleSetup_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("Please note: this new setup form is still in active development. There will be bugs! Make sure you backup your configuration in case it breaks something.", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);

            if (dr == DialogResult.Cancel)
                return;

            using (DisplaySetup form = new DisplaySetup()) {
                dr = form.ShowDialog();
            }

            if (dr == DialogResult.OK) {
                VixenSystem.SaveSystemConfig();
            } else {
                VixenSystem.ReloadSystemConfig();
            }
        }