private void buttonSetupOutputPreviews_Click(object sender, EventArgs e) { ConfigPreviews form = new ConfigPreviews(); DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { VixenSystem.SaveSystemConfig(); } else { VixenSystem.ReloadSystemConfig(); } }
private void SetupPreviews() { using (ConfigPreviews form = new ConfigPreviews()) { DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { VixenSystem.SaveSystemConfig(); } else { VixenSystem.ReloadSystemConfig(); } } }
private async void SetupPreviews() { using (ConfigPreviews form = new ConfigPreviews()) { DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { await VixenSystem.SaveSystemAndModuleConfigAsync(); } else { VixenSystem.ReloadSystemConfig(); } } }
private void buttonSetupOutputPreviews_Click(object sender, EventArgs e) { ConfigPreviews form = new ConfigPreviews(); DialogResult result = form.ShowDialog(); if(result == DialogResult.OK) { VixenSystem.SaveSystemConfig(); } else { VixenSystem.ReloadSystemConfig(); } }