private void saveToolStripMenuItem_Click(object sender, EventArgs e) { if (dockPanel.ActiveDocument.GetType() == typeof(EditorWindow)) { EditorWindow ew = (EditorWindow)dockPanel.ActiveDocument; solution.savefile(ew.filename); //ew.save(); } }
private void toolStripButton_save_Click(object sender, EventArgs e) { sol.savefile(filename); }