private void quit_button_Click(object sender, EventArgs e) { DialogResult dialogResult = MessageBox.Show("Do you want to exit?", "Warning", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { SavingAndReading save = new SavingAndReading(); save.WriteSystemList(); this.Close(); } }
private void AddSubjects_FormClosing(object sender, FormClosingEventArgs e) { DialogResult dialogResult = MessageBox.Show("Do you want to exit?", "Warning", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { SavingAndReading save = new SavingAndReading(); save.WriteSystemList(); } else { e.Cancel = true; } }
public void WebpageAnalyzationMain(string filename) { SavingAndReading data = new SavingAndReading(); string url = System.IO.File.ReadAllText(filename); WebpageAnalyzation web = new WebpageAnalyzation(); HtmlDocument doc = web.DepartmentNodeCollection(url); web.timePX(doc); web.Subject(doc); web.CountSubjectInEachDay(doc); web.CompeletTT(doc); web.print(); data.WriteSystemList(); }
//private void read_button_Click(object sender, EventArgs e) //{ //} private void save_button_Click(object sender, EventArgs e) { SavingAndReading data = new SavingAndReading(); data.WriteSystemList(); }