private void ItemDoubleClick(object obj) { if (LoginPage.Loggedin_User.Authentication == "seller") { EditItemVM editVM = new EditItemVM(this); EditItem edit = new EditItem { DataContext = editVM }; edit.Show(); } else { MessageBox.Show("Access Denied"); } }
public PetEditVM(EditItemVM parent) { Parent = parent; }