private void CompareTimer_Tick(object sender, EventArgs e) { if (!search_ExplorerWindow()) { Form shutdownFrom = new ShutdownForm(); CompareTimer.Stop(); shutdownFrom.ShowDialog(); } }
private void autoshutdownbtn_Click(object sender, EventArgs e) { if (search_ExplorerWindow()) { CompareTimer.Start(); MessageBox.Show(this, "자동으로 종료됩니다.", "안내", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(this, "진행중인 작업이 없습니다!", "경고", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
private void button1_Click(object sender, EventArgs e) { CompareTimer.Stop(); }