コード例 #1
0
ファイル: frmServices.cs プロジェクト: abhishek-kumar/AIGA
        private void btnArchiveServices_Click(object sender, System.EventArgs e)
        {
            // If the service is disabled, but there are entries in the list, note that fact
            bool explicitlyDisabled = (!chkEnableArchive.Checked) && (cmbArchiveServices.Items.Count > 0);

            frmServices2 services = new frmServices2(ServicesUIText.ArchiveService, archiversRegKey);
            if (services.ShowDialog() == DialogResult.OK)
            {
                InitService(archiversRegKey, this.cmbArchiveServices, this.chkEnableArchive);

                // If the service was not explictly disabled, and now there's one entry in the list, it should be auto-enabled
                if( !explicitlyDisabled && cmbArchiveServices.Items.Count == 1 )
                {
                    cmbArchiveServices.SelectedIndex = 0;
                    chkEnableArchive.Checked = true;
                }
            }
        }
コード例 #2
0
ファイル: frmServices.cs プロジェクト: psyCHOder/conferencexp
 private void btnVenueServices_Click(object sender, System.EventArgs e)
 {
     frmServices2 services = new frmServices2(ServicesUIText.VenueService, venuesRegKey);
     if (services.ShowDialog() == DialogResult.OK) 
     {
         InitService(venuesRegKey, this.cmbVenueServices, null);
     }            
 }