private void OK(Object o)
 {
     if (selectedRow == null)
     {
         MessageBox.Show("Строка для копирования не выбрана");
         //aav = null;
         return;
     }
     if (String.IsNullOrEmpty(armTypeNew))
     {
         MessageBox.Show("Заполните название нового типа АРМ.");
         aav = null;
         return;
     }
     aav.ORG_ID      = selectedRow.ORG_ID;
     aav.ORG_NAME    = selectedRow.ORG_NAME;
     aav.AT_ID       = selectedRow.AT_ID;
     aav.AT_NAME     = selectedRow.AT_NAME;
     aav.ANL_ID      = selectedRow.ANL_ID;
     aav.ANL_INVOICE = selectedRow.ANL_INVOICE;
     aav.ARM_ID      = selectedRow.ARM_ID;
     aav.ARM_NUMBER  = selectedRow.ARM_NUMBER;
     aav.armTypeNew  = armTypeNew;
     closeWindow();
 }
Esempio n. 2
0
 public SelectWindow(ObservableCollection <AllArmsView> allArmsView, AllArmsView aav)
 {
     InitializeComponent();
     this.DataContext = new SelectWindowViewModel(allArmsView, aav);
     ((SelectWindowViewModel)this.DataContext).closeWindow += WindowClose;
 }
 public SelectWindowViewModel(ObservableCollection <AllArmsView> allArmsView, AllArmsView aav)
 {
     allArms  = allArmsView;
     this.aav = aav;
 }