示例#1
0
 private void AddError(string message, FormVM form)
 {
     WriteError newErrorInfo = new WriteError(message, studyUnit, form);
     if (!ContainsError(newErrorInfo))
     {
         AddError(newErrorInfo);
     }
 }
示例#2
0
 public WriteError(string message, EDOUnitVM edoUnit, FormVM form)
 {
     Message = message;
     EDOUnit = edoUnit;
     Form    = form;
 }
示例#3
0
 public WriteError(string message, EDOUnitVM edoUnit, FormVM form)
 {
     Message = message;
     EDOUnit = edoUnit;
     Form = form;
 }
示例#4
0
 public MenuItemVM(MenuElem elem, FormVM content)
 {
     this.elem = elem;
     this.content = content;
     this.MenuItems = new ObservableCollection<MenuItemVM>();
 }
示例#5
0
 public MenuItemVM FindMenuItem(FormVM form)
 {
     foreach (MenuItemVM menuItem in MenuItems)
     {
         if (menuItem.Content == form)
         {
             return menuItem;
         }
         foreach (MenuItemVM childMenuItem in menuItem.MenuItems)
         {
             if (childMenuItem.Content == form)
             {
                 return childMenuItem;
             }
         }
     }
     return null;
 }
示例#6
0
 public bool Contains(FormVM form)
 {
     return FindMenuItem(form) != null;
 }