private void ItemDoubleClick(object obj)
 {
     if (LoginPage.Loggedin_User.Authentication == "seller")
     {
         EditSupplyVM editVM = new EditSupplyVM(this);
         EditSupply   edit   = new EditSupply
         {
             DataContext = editVM
         };
         edit.Show();
     }
     else
     {
         MessageBox.Show("Access Denied");
     }
 }
예제 #2
0
 public SupplyEditVM(EditSupplyVM parent)
 {
     Parent = parent;
 }