예제 #1
0
 /// <summary>
 /// Save all files opened in tabs of the current window.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SaveAll(object sender, EventArgs e)
 {
     foreach (TabPage tab in tabControl.TabPages)
     {
         EditorTab editorTab = tab as EditorTab;
         if (editorTab != null)
         {
             editorTab.SaveFile();
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Save current file.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Save(object sender, EventArgs e)
 {
     if (tabControl.SelectedTab != null)
     {
         EditorTab tab = tabControl.SelectedTab as EditorTab;
         if (tab != null)
         {
             tab.SaveFile();
         }
     }
 }