private void executeMenuStrip_Click(object sender, EventArgs e) { List <String> files = sheets.getFiles(); if (files.Count > 0) { logger.addLog("Start Processing " + files.Count + " file(s)."); Thread thread = new Thread(() => LongRun(files)); thread.Start(); } else { logger.addError("No file selected."); } }
private void FormMain_Load(object sender, EventArgs e) { logger = new FormLogger(); logger.MdiParent = this; logger.Show(); logger.Location = new Point(this.Width - logger.Width - 30, this.Height - logger.Height - 70); sheets = new FormSheet(); sheets.MdiParent = this; sheets.Show(); sheets.Location = new Point(this.Width - sheets.Width - 30, this.Height - logger.Height - sheets.Height - 90); result = new FormResult(); result.MdiParent = this; result.Show(); result.Location = new Point(10, 20); logger.addLog("Initialized."); }
private void FormMain_Load(object sender, EventArgs e) { logger = new FormLogger(); logger.MdiParent = this; logger.Show(); logger.Location = new Point(this.Width - logger.Width - 30, this.Height - logger.Height - 70); sheets = new FormSheet(); sheets.MdiParent = this; sheets.Show(); sheets.Location = new Point(this.Width - sheets.Width - 30, this.Height - logger.Height - sheets.Height - 90); result = new FormResult(); result.MdiParent = this; result.Show(); result.Location = new Point(10, 20); logger.addLog("Initialized."); }