2 using System.Collections.Generic;
6 using System.Windows.Controls;
7 using System.Windows.Data;
8 using System.Windows.Documents;
9 using System.Windows.Input;
10 using System.Windows.Media;
11 using System.Windows.Media.Imaging;
12 using System.Windows.Navigation;
13 using System.Windows.Shapes;
15 namespace SeciControls
22 List<String>
_files =
new List<string>();
26 InitializeComponent();
31 tcFiles.Items.Clear();
37 foreach (String file
in files)
39 if (!
_files.Contains(file.ToLower()))
41 int index = tcFiles.Items.Add(
new EditTab(file));
42 tcFiles.SelectedIndex = index;
43 _files.Add(file.ToLower());
48 private void SaveExecuted(
object sender, ExecutedRoutedEventArgs e)
59 tab.SaveText(tab.Filename);
60 txtMessages.Text =
"";
64 txtMessages.Text =
"Could not save " + tab.Filename +
": " + err.Message;
80 txtMessages.Text =
"";
83 Seci.Managers.AssocFileMgr.RestoreFile(tab.Filename);
89 txtMessages.Text =
"Could not reload original version of" + tab.Filename +
": " + err.Message;
void LoadFiles(List< String > files)
void btnRevert_Click(object sender, RoutedEventArgs e)
void SaveExecuted(object sender, ExecutedRoutedEventArgs e)
Interaction logic for IniEditor.xaml