コード例 #1
0
ファイル: Form1.cs プロジェクト: olyakosyura/crusaders
 private void loadUsers()
 {
     Users.UsersSoapClient client = new Users.UsersSoapClient();
     m_Users            = client.ListUsers("8rAc1weajVfmpM07SpQAzmb/Jr3fJ1Lu9glo5OCGWN0=");
     tblData.DataSource = null;
     tblData.DataSource = m_Users;
     m_ControlsTypes    = ControlsTypes.ctUsers;
 }
コード例 #2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     Users.UsersSoapClient client = new Users.UsersSoapClient();
     m_Role = client.Check(edtLogin.Text, edtPass.Text);
     if (m_Role == "invalid")
     {
         MessageBox.Show("Invalid login or password", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         Close();
     }
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: olyakosyura/crusaders
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (m_ControlsTypes == ControlsTypes.ctPlayers)
     {
         Players.PlayersSoapClient client = new Players.PlayersSoapClient();
         client.UpdateAllPlayers_internal((Players.ArrayOfPlayers)m_Players);
         MessageBox.Show("Players saved!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else if (m_ControlsTypes == ControlsTypes.ctMatches)
     {
         Matches.MatchesSoapClient client = new Matches.MatchesSoapClient();
         client.UpdateMatches((Matches.ArrayOfMatches)m_Matches);
         MessageBox.Show("Matches saved!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else if (m_ControlsTypes == ControlsTypes.ctUsers)
     {
         Users.UsersSoapClient client = new Users.UsersSoapClient();
         client.UpdateUsers((Users.ArrayOfUsers)m_Users);
         MessageBox.Show("Users saved!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }