示例#1
0
文件: begin.cs 项目: amir9979/sadna
 private void button10_Click(object sender, EventArgs e)
 {
     if (listBox3.SelectedIndex >= 0)
     {
         if (myConnection.promoteMemberToModerator(this.CurrentState.allMembers.ElementAt(listBox3.SelectedIndex), this.CurrentState.currentSubForumInfo))
         {
             MessageBox.Show("promoteMemberToModerator succ");
         }
         else
         {
             MessageBox.Show("promoteMemberToModerator fail");
         }
     }
     else
     {
         MessageBox.Show("אנא בחר תת-פורום");
     }
 }