private void ButtonSave_Click(object sender, EventArgs e) { Windows.SelectEditorFilePopup popup = new Windows.SelectEditorFilePopup(); popup.SkipFileExistCheck = true; popup.SelectButtonText = "Save"; popup.Closed += (s, e) => { if (popup.DialogResult) { SadConsole.Serializer.Save(EditingColors, popup.SelectedFile, false); } }; popup.Show(true); }
private void ButtonLoad_Click(object sender, EventArgs e) { Windows.SelectEditorFilePopup popup = new Windows.SelectEditorFilePopup(); popup.Closed += (s, e) => { if (popup.DialogResult) { EditingColors = SadConsole.Serializer.Load <Colors>(popup.SelectedFile, false); SettingsPanel.RefreshColors(); RefreshTestingPanel(); } }; popup.Show(true); }