private void Add_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { DataCommon.Remove("MEMBER_EDIT"); PopupMember pop = new PopupMember(); pop.ShowDialog(); ReloadData(); }
private void Button_Click(object sender, RoutedEventArgs e) { try { int index = grdMember.SelectedIndex; string user = ((DataRowView)grdMember.SelectedItem).Row.ItemArray[2].ToString(); MemberData member = new MemberDAL().GetMember(user); DataCommon.Set("MEMBER_EDIT", member); PopupMember pop = new PopupMember(); pop.ShowDialog(); ReloadData(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }