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"); } }
public SupplyEditVM(EditSupplyVM parent) { Parent = parent; }