private void buttonSetupFiltersAndPatching_Click(object sender, EventArgs e) { ConfigFiltersAndPatching form = new ConfigFiltersAndPatching(_applicationData); DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { VixenSystem.SaveSystemConfig(); } 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(); } }
private void SetupPreviews() { using (ConfigPreviews form = new ConfigPreviews()) { DialogResult result = form.ShowDialog(); if (result == DialogResult.OK) { VixenSystem.SaveSystemConfig(); } else { VixenSystem.ReloadSystemConfig(); } } }
private void SetupFiltersAndPatching() { using (ConfigFiltersAndPatching form = new ConfigFiltersAndPatching(_applicationData)) { 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 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 btnRestore_Click(object sender, EventArgs e) { if (listViewRestorePoints.SelectedItems.Count != 1) { return; } //messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible) MessageBoxForm.msgIcon = SystemIcons.Hand; //this is used if you want to add a system icon to the message form. var messageBox = new MessageBoxForm("Are you sure you want to restore this version? \n\rIf you have not backed up the current profile, all changes will be lost!", "Restore?", true, false); messageBox.ShowDialog(); if (messageBox.DialogResult == DialogResult.OK) { Cursor = Cursors.WaitCursor; RevCommit commit = listViewRestorePoints.SelectedItems[0].Tag as RevCommit; Git git = new Git(_repo); git.Reset().SetMode(ResetCommand.ResetType.HARD).SetRef(commit.Name).Call(); VixenSystem.ReloadSystemConfig(); Cursor = Cursors.Arrow; Close(); } }
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(); } }