private void RestartMenumateService() { if (IsAdministrator()) { if (!_opertationSystemInformation.IsAdministrator()) { ShowErrorMessage(@"Failed to restart Xero Service. Close Xero Config and run it as administrator."); return; } } ThrowRestartServiceThread(); }
private void RestartAccountingService() { if (NeedToBeAdmin()) { if (!_winInfo.IsAdministrator()) { ShowErrorMsg(@"Failed to restart Accounting Service. Close Accounting Config and run it as administrator."); return; } } //::::::::::::::::::::::::::::::::::::::::: ShowRestartingAccountingSvc(true); RestartService(@"MenumateServiceAccounting", 10000); ShowRestartingAccountingSvc(false); }