public InventoryManagerViewModel(InventoryManagerDialog dialog, ObservableInventory inventory)
     : this(inventory)
 {
     Title = "규격 데이터를 수정합니다.";
     _control = dialog;
 }
 /// <summary>
 /// 인벤토리 수정할 수 있는 InventoryManagerDialog 열기
 /// </summary>
 private async void ExecuteInventoryModifyCommand()
 {
     if (Application.Current != null)
     {
         TreeViewNode node = SelectedNodes.Single();
         ObservableInventory inv = DataDirector.GetInstance().SearchInventory(node.ObservableObjectID);
         MetroWindow metro = Application.Current.MainWindow as MetroWindow;
         InventoryManagerDialog dialog = new InventoryManagerDialog(metro);
         dialog.DataContext = new InventoryManagerViewModel(dialog, inv);
         await metro.ShowMetroDialogAsync(dialog, null);
     }
 }
 public InventoryManagerViewModel(InventoryManagerDialog dialog, Observable<Product> product) : this(product)
 {
     Title = "새로운 규격 데이터를 등록합니다.";
     _control = dialog;
 }