コード例 #1
0
        private void EditButton(object sender, RoutedEventArgs e)
        {
            Button editBtn = sender as Button;

            if (editBtn != null)
            {
                SendClubID = editBtn.Tag as string;
                Edit_Club EC = new Edit_Club();
                EC.Show();
                this.Close();
            }
        }
コード例 #2
0
 private void ButtonClubInfo_Click(object sender, RoutedEventArgs e)
 {
     clubID = Database.checkMemberClub(Convert.ToInt32(Properties.Settings.Default.userID));
     if (clubID == "0")
     {
         MessageBox.Show("Something goes wrong, you don't have club");
     }
     else
     {
         Edit_Club EC = new Edit_Club();
         EC.Show();
         this.Close();
     }
 }