private void Add(object _) { var frm = new AddEditReceptionView(); frm.ShowDialog(); LoadData(); }
private void Edit(object obj) { if (obj is Product product) { var frm = new AddEditReceptionView(); MessengerInstance.Send(product); frm.ShowDialog(); LoadData(); } }