Esempio n. 1
0
        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
        }
Esempio n. 2
0
 Page ITreeViewItem.EditPage()
 {
     ProjEnvironment.SaveBackup();//to mark the env as changed
     if (mApplicationPage == null)
     {
         mApplicationPage = new ApplicationPage(EnvApplication);
     }
     return(mApplicationPage);
 }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 private void DeleteEnvTreeItems()
 {
     ProjEnvironment.Applications.Remove(EnvApplication);
     ProjEnvironment.SaveBackup();//to mark the env as changed
 }
Esempio n. 6
0
 private void Delete(object sender, RoutedEventArgs e)
 {
     ProjEnvironment.Applications.Remove(EnvApplication);
     mTreeView.Tree.RefreshSelectedTreeNodeParent();
     ProjEnvironment.SaveBackup();//to mark the env as changed
 }
Esempio n. 7
0
 private void Delete(object sender, RoutedEventArgs e)
 {
     ProjEnvironment.Applications.Remove(EnvApplication);
     ProjEnvironment.SaveBackup();//to mark the env as changed
 }