Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
        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;
                }
            }
        }
Beispiel #3
0
        private void btnDiagnosticsServices_Click(object sender, EventArgs e)
        {
            // If the service is disabled, but there are entries in the list, note that fact
            bool explicitlyDisabled = (!chkEnableDiagnostics.Checked) && (cmbDiagnosticsServices.Items.Count > 0);

            frmServices2 services = new frmServices2(ServicesUIText.DiagnosticsService, diagnosticsRegKey);

            if (services.ShowDialog() == DialogResult.OK)
            {
                InitService(diagnosticsRegKey, this.cmbDiagnosticsServices, this.chkEnableDiagnostics);

                // If the service was not explictly disabled, and now there's one entry in the list, it should be auto-enabled
                if (!explicitlyDisabled && cmbDiagnosticsServices.Items.Count == 1)
                {
                    cmbDiagnosticsServices.SelectedIndex = 0;
                    chkEnableDiagnostics.Checked         = true;
                }
            }
        }
Beispiel #4
0
 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);
     }            
 }