コード例 #1
0
        private void UtilityDashboard_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show($"Tasks will not execute while the Integration Utility is closed. Are you sure you want to exit?", "Are you sure?", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                JobManager.Dispose();
            }

            e.Cancel = dialogResult == DialogResult.No;
        }
コード例 #2
0
 protected override void OnStop()
 {
     base.OnStop();
     JobManager.Dispose();
 }