Пример #1
0
 private void loadMatches()
 {
     Matches.MatchesSoapClient client = new Matches.MatchesSoapClient();
     m_Matches = client.GetAllMatches();
     tblData.DataSource = null;
     tblData.DataSource = m_Matches;
     tblData.Columns["Id"].ReadOnly = true;
     m_ControlsTypes = ControlsTypes.ctMatches;
 }
Пример #2
0
        private void loadTickets()
        {
            Matches.MatchesSoapClient client = new Matches.MatchesSoapClient();
            Matches.SingleTicket[] tickets = client.GetAllBookings();
            m_Tickets = new Dictionary<string, Matches.SingleTicket>();

            m_BookingReferences = new List<string>();
            foreach (var t in tickets)
            {
                m_Tickets[t.BookingReference] = t;
                m_BookingReferences.Add(t.BookingReference);
            }
        }
Пример #3
0
 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);
     }
 }