Exemplo n.º 1
0
 private void Apply()
 {
     foreach (var v in SelectedChanges.Where(var => var.IsApplied == false))
     {
         v.IsApplied = ChangeController.ApplySingleChange(Plants, Wells, v.changeDescription);
     }
     if (ChangesApplied != null)
     {
         ChangesApplied(this, null);
     }
 }
Exemplo n.º 2
0
        private void Save()
        {
            Microsoft.Win32.SaveFileDialog savedialog = new Microsoft.Win32.SaveFileDialog();
            savedialog.Filter = "(*.xml)|*.xml";

            if (savedialog.ShowDialog().Value)
            {
                ChangeController.SaveToFile(SelectedChanges.Select(var => var.changeDescription), savedialog.FileName);
                foreach (var v in SelectedChanges)
                {
                    v.IsDirty = false;
                }
            }
        }