private void FillTabEConnector() { //Check to see if the eConnector service is already installed. If it is, disable the install button. //Users who want to install multiple on one computer can use the Service Manager instead. //Do nothing on error. The Install button will simply be visible. ODException.SwallowAnyException(() => { if (ServicesHelper.GetServicesByExe("OpenDentalEConnector.exe").Count > 0) { butInstallEConnector.Enabled = false; } }); FillTextListenerServiceStatus(); FillGridListenerService(); }
private void FillTabEConnector() { //Check to see if the eConnector service is already installed. If it is, disable the install button. //Users who want to install multiple on one computer can use the Service Manager instead. //Do nothing on error. The Install button will simply be visible. ODException.SwallowAnyException(() => { if (PrefC.IsCloudMode || ServicesHelper.GetServicesByExe("OpenDentalEConnector.exe").Count > 0) { butInstallEConnector.Enabled = false; } }); FillTextListenerServiceStatus(); FillGridListenerService(); //Default to not checked if it is unknown. checkEmailsWithDiffProcess.Checked = ((YN)PrefC.GetInt(PrefName.SendEmailsInDiffProcess) == YN.Yes); }