Beispiel #1
0
        void RenameSimilarActs(ActionViewModel callActionViewModel)
        {
            var simactslist = SearchSimilarActs(callActionViewModel.Name.Trim()).ToList();

            foreach (var action in simactslist)
            {
                string name = callActionViewModel.Name;
                ActionViewModels[Actions.IndexOf(action)].Name = name + "*";
                action.Name = name + "*";
            }
        }
Beispiel #2
0
 private int FindIndexInEventListViewModels(ActionViewModel element)
 {
     for (int i = 0; i < ActionViewModels.Count; i++)
     {
         if (ActionViewModels[i] == element)
         {
             return(i);
         }
     }
     return(-1);
 }
Beispiel #3
0
        public void UpdateAction(ActionViewModel callActionViewModel)
        {
            if (ActionViewModels.Count != Actions.Count || !ActionViewModels.Contains(callActionViewModel))
            {
                return;
            }
            int index = ActionViewModels.IndexOf(callActionViewModel);

            RenameSimilarActs(callActionViewModel);
            Actions[index].Name            = callActionViewModel.Name;
            NavigationWindowShower.IsSaved = false;
        }
 public void UpdateAction(ActionViewModel callActionViewModel)
 {
     if (ActionViewModels.Count != Actions.Count || !ActionViewModels.Contains(callActionViewModel)) return;
     int index = ActionViewModels.IndexOf(callActionViewModel);
     RenameSimilarActs(callActionViewModel);
     Actions[index].Name = callActionViewModel.Name;
     NavigationWindowShower.IsSaved = false;
 }
 void RenameSimilarActs(ActionViewModel callActionViewModel)
 {
     var simactslist = SearchSimilarActs(callActionViewModel.Name.Trim()).ToList();
     foreach (var action in simactslist)
     {
         string name = callActionViewModel.Name;
         ActionViewModels[Actions.IndexOf(action)].Name = name + "*";
         action.Name = name + "*";
     }
 }
 private int FindIndexInEventListViewModels(ActionViewModel element)
 {
     for (int i = 0; i < ActionViewModels.Count; i++)
         if (ActionViewModels[i] == element)
             return i;
     return -1;
 }