public ToshibaImportPreparation() { InitializeComponent(); m_vm = new ViewModels.PToshibaImportVM(); DataContext = m_vm; }
public ToshibaProcessEditor(ViewModels.PToshibaImportVM vm, int index) { InitializeComponent(); m_countSelection = new List <string>(); m_items = new List <MenuItem>(); generateCountSelector(vm.Processes.Count - index); this.index = index; m_vm = vm; DataContext = this; if (m_vm.UpperWP != null) { try { g_quality.Children.Add(m_vm.Processes[index].WP_UpperControl); Grid.SetRow(m_vm.Processes[index].WP_UpperControl, gridIndex); gridIndex++; } catch { } } if (m_vm.LowerWP != null) { try { g_quality.Children.Add(m_vm.Processes[index].WP_LowerControl); Grid.SetRow(m_vm.Processes[index].WP_LowerControl, gridIndex); gridIndex++; } catch { } } if (m_vm.Glass != null) { try { g_quality.Children.Add(m_vm.Processes[index].ProcessQualityControl); Grid.SetRow(m_vm.Processes[index].ProcessQualityControl, gridIndex); g_quality.Children.Add(m_vm.Processes[index].PV_Control); Grid.SetRow(m_vm.Processes[index].PV_Control, gridIndex + 1); } catch { } } }
public ToshibaProcessImport(ViewModels.PToshibaImportVM vm) { InitializeComponent(); m_vm = vm; DataContext = m_vm; }