Inheritance: Common.Controls.BaseForm
Exemplo n.º 1
0
        private void SetupDisplay()
        {
            using (DisplaySetup form = new DisplaySetup()) {
                DialogResult dr = form.ShowDialog();

                if (dr == DialogResult.OK)
                {
                    VixenSystem.SaveSystemConfig();
                }
                else
                {
                    VixenSystem.ReloadSystemConfig();
                }
            }
        }
Exemplo n.º 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();
                }
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 4
0
        private void SetupDisplay()
        {
            using (DisplaySetup form = new DisplaySetup()) {
                DialogResult dr = form.ShowDialog();

                if (dr == DialogResult.OK) {
                    VixenSystem.SaveSystemConfig();
                }
                else {
                    VixenSystem.ReloadSystemConfig();
                }
            }
        }
Exemplo n.º 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();
            }
        }