private void Duplicate(object sender, RoutedEventArgs e) { EnvApplication copy = (EnvApplication)EnvApplication.CreateCopy(); copy.Name = copy.Name + "_copy"; ProjEnvironment.Applications.Add(copy); ProjEnvironment.SaveBackup();//to mark the env as changed }
Page ITreeViewItem.EditPage() { ProjEnvironment.SaveBackup();//to mark the env as changed if (mApplicationPage == null) { mApplicationPage = new ApplicationPage(EnvApplication); } return(mApplicationPage); }
private void Duplicate(object sender, RoutedEventArgs e) { EnvApplication copy = (EnvApplication)EnvApplication.CreateCopy(); copy.Name = copy.Name + "_copy"; ProjEnvironment.Applications.Add(copy); ProjEnvironment.SaveBackup();//to mark the env as changed mTreeView.Tree.RefreshSelectedTreeNodeParent(); }
Page ITreeViewItem.EditPage(Amdocs.Ginger.Common.Context mContext) { ProjEnvironment.SaveBackup();//to mark the env as changed ProjEnvironment.StartDirtyTracking(); if (mApplicationPage == null) { mApplicationPage = new ApplicationPage(EnvApplication, new Context() { Environment = ProjEnvironment }); } return(mApplicationPage); }
private void DeleteEnvTreeItems() { ProjEnvironment.Applications.Remove(EnvApplication); ProjEnvironment.SaveBackup();//to mark the env as changed }
private void Delete(object sender, RoutedEventArgs e) { ProjEnvironment.Applications.Remove(EnvApplication); mTreeView.Tree.RefreshSelectedTreeNodeParent(); ProjEnvironment.SaveBackup();//to mark the env as changed }
private void Delete(object sender, RoutedEventArgs e) { ProjEnvironment.Applications.Remove(EnvApplication); ProjEnvironment.SaveBackup();//to mark the env as changed }