private void StartNormalMode() { try { if (WorkModeChanger.SetupNormalMode() == 0) { WebPlaceSettings.CustomerMode = false; DebugMessageBox("ActivateNormalMode"); ApplyModeChanges(); } } catch (Exception ex) { #if DEBUG MessageBox.Show(ex.Message); #endif } }
private void StartCustomerMode() { try { if (DialogResult.OK != MessageBox.Show("Switching the mode requires restarting the computer!\n Do you want to restart your computer now?", "Attantion!", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning)) { return; } if (WorkModeChanger.SetupCustomerMode() == 0) { WebPlaceSettings.CustomerMode = true; DebugMessageBox("ActivateCustomerMode"); ApplyModeChanges(); } } catch (Exception ex) { #if DEBUG MessageBox.Show(ex.Message); #endif } }