private void lastViewToolStripMenuItem_Click(object sender, EventArgs e) { if (File.Exists(Properties.Settings.Default.LastElf0)) { ViewerSettings settingsSaver = new ViewerSettings(); settingsSaver.LoadFromFile(Properties.Settings.Default.LastView0, variablesForm.VariablesList, this, variablesForm, scrollBarWindows); //Properties.Settings.Default.LastView0 = openViewDialog.FileName; Properties.Settings.Default.Save(); } }
private void viewToolStripMenuItem_Click(object sender, EventArgs e) { if (variablesForm != null) { if (openViewDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { ViewerSettings settingsSaver = new ViewerSettings(); settingsSaver.LoadFromFile(openViewDialog.FileName, variablesForm.VariablesList, this, variablesForm, scrollBarWindows); Properties.Settings.Default.LastView0 = openViewDialog.FileName; Properties.Settings.Default.Save(); } } else { MessageBox.Show("Elf is not loaded, nothing to save"); } }