示例#1
0
文件: MainForm.cs 项目: radtek/Pos
        private void RestartMenumateService()
        {
            if (IsAdministrator())
            {
                if (!_opertationSystemInformation.IsAdministrator())
                {
                    ShowErrorMessage(@"Failed to restart Xero Service. Close Xero Config and run it as administrator.");
                    return;
                }
            }

            ThrowRestartServiceThread();
        }
示例#2
0
        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);
        }