private void FileOpenConfigMenuItem_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new System.Windows.Forms.OpenFileDialog();
            dlg.CheckFileExists = true;
            dlg.DefaultExt = ".config";
            dlg.Filter = "HyperActive Confg Files | *.config";
            dlg.Title = "Select HyperActive Configuration File";

            if (System.Windows.Forms.DialogResult.OK != dlg.ShowDialog()) return;
            var service = new ConfigService();
            string configFilePath = dlg.FileName;
            var model = service.EditConfigs(configFilePath);
            DataContext = model;
            //EditConfig(model.Configs[0]);
        }
 void AppStartWindow_Loaded(object sender, RoutedEventArgs e)
 {
     if (DataContext == null)
     {
         var projectWin = new ProjectWindow();
         projectWin.Owner = this;
         projectWin.ShowDialog();
         if (projectWin.Model != null)
         {
             var service = new ConfigService();
             EditConfigsViewModel model = service.EditConfigs(projectWin.Model);
             DataContext = model;
             ConfigsListBox.SelectedIndex = 0;
         }
     }
 }