Пример #1
0
 private void ComboBox_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (_mainWindowVm != null && !_mainWindowVm.IsRun)
     {
         if (e.AddedItems.Count > 0)
         {
             var item = (LogFile)e.AddedItems[0];
             _mainWindowVm.SetFileName(item);
         }
     }
 }
Пример #2
0
 private void SelectCurrentFile()
 {
     _mainWindowVm.SavedFiles.Add(SelectedFile);
     _mainWindowVm.SetFileName(SelectedFile);
     RaiseCloseRequest();
 }