private void SetupDisplay() { using (DisplaySetup form = new DisplaySetup()) { DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { VixenSystem.SaveSystemConfig(); } else { VixenSystem.ReloadSystemConfig(); } } }
private async void SetupDisplay() { using (DisplaySetup form = new DisplaySetup()) { DialogResult dr = form.ShowDialog(); if (dr == DialogResult.OK) { await VixenSystem.SaveSystemAndModuleConfigAsync(); } else { VixenSystem.ReloadSystemConfig(); } } }
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(); } }
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(); } }