コード例 #1
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (ParcourEdit == null)
     {
         ParcourEdit = new ParcourEdit(Client);
     }
     enableControl(ParcourEdit);
 }
コード例 #2
0
 private void disconnectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Client             = null;
     Pilot              = null;
     Team               = null;
     QualificationRound = null;
     //Visualisation = null;
     ParcourEdit = null;
     //ParcourGen = null;
     Map                   = null;
     ParcourImport         = null;
     ParcourOverviewZoomed = null;
     MapLegacy             = null;
     Results               = null;
     CompetitionO          = null;
     StatusStripLabel.Text = string.Empty;
     UpdateEnablement();
     enableControl(About);
 }
コード例 #3
0
        void CompetitionO_Connected(object sender, EventArgs e)
        {
            DataAccess c = sender as DataAccess;

            if (c != null)
            {
                Client             = c;
                Pilot              = null;
                Team               = null;
                QualificationRound = null;
                //Visualisation = null;
                ParcourEdit = null;
                //ParcourGen = null;
                Map                   = null;
                ParcourImport         = null;
                ParcourOverviewZoomed = null;
                MapLegacy             = null;
                Results               = null;
                UpdateEnablement();
            }
            enableControl(About);
        }