Ejemplo n.º 1
0
 public SettingsDataset()
 {
     PriorityLevelScope = PriorityScope.Solution;
     PLevels = PriorityLevels.DemandLoad;
     BuildAssist = new BuildAssistance();
     BuildAssist.HighightBuildOutput = true;
     BuildAssist.BalloonTip = true;
     BuildAssist.TaskbarNotification = true;
     BuildAssist.BuildSummary = true;
     FileOpen = new FAF();//constructor has default value
     FindDataset = new FinderDataset();//constructor has default value
     //CleanupVissualAssist = true;
     OtherFeatures = new Others();
 }
Ejemplo n.º 2
0
 public static void WriteFinderDataSet(FinderDataset dataset)
 {
     SettingsManager.XSettings.FindDataset = dataset;
     SettingsManager.WriteSettings(SettingsManager.XSettings);
 }
Ejemplo n.º 3
0
 //~MultiWordFinder()
 //{
 //    CacheDataset();
 //}
 void InitControls()
 {
     dataset = SettingsProvider.GetFinderDataset();
     switch (dataset.LookIn)
     {
         case Lookin.AllOpenDocs:
             allopeneddocs.IsChecked = true;
             break;
         case Lookin.CurrentDoc:
             curdoc.IsChecked = true;
             break;
         case Lookin.CurrentProj:
             project.IsChecked = true;
             break;
         case Lookin.EntireSoln:
             solution.IsChecked = true;
             break;
     }
     matchcase.IsChecked = dataset.MatchCase;
     matchwholeword.IsChecked = dataset.MatchWholeWord;
     filetype.Text = dataset.FileTypes;
     switch(dataset.ResultWnd)
     {
         case ResultWindow.One:
             findresultwnd1.IsChecked = true;
             break;
         case ResultWindow.Two:
             findresultwnd2.IsChecked = true;
             break;
     }
     displayfilenameonly.IsChecked = dataset.DisplayFileNamesOnly;
     foreach (var item in dataset.FindWhat)
     {
         findlist.Items.Add(item);
     }
 }