예제 #1
0
        private void Add_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            DataCommon.Remove("MEMBER_EDIT");
            PopupMember pop = new PopupMember();

            pop.ShowDialog();
            ReloadData();
        }
예제 #2
0
 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());
     }
 }