예제 #1
0
        private void btnComputerOptions_Click(object sender, EventArgs e)
        {
            ServicesComputerOptionsPage CompOptions = new ServicesComputerOptionsPage(serviceName);

            CompOptions.sRestartMunites = failureActions.dwResetPeriod;
            CompOptions.sRebootMsg      = failureActions.lpRebootMsg;
            if (CompOptions.ShowDialog(this) == DialogResult.OK)
            {
                failureActions.lpRebootMsg   = CompOptions.sRebootMsg;
                failureActions.dwResetPeriod = CompOptions.sRestartMunites;
            }
        }
 private void btnComputerOptions_Click(object sender, EventArgs e)
 {
     ServicesComputerOptionsPage CompOptions = new ServicesComputerOptionsPage(serviceName);
     CompOptions.sRestartMunites = failureActions.dwResetPeriod;
     CompOptions.sRebootMsg = failureActions.lpRebootMsg;
     if (CompOptions.ShowDialog(this) == DialogResult.OK)
     {
         failureActions.lpRebootMsg = CompOptions.sRebootMsg;
         failureActions.dwResetPeriod = CompOptions.sRestartMunites;
     }
 }