public void Open() { input inp = new input(); //получить день недели foreach (List<string> i in inp.tab) { foreach (string u in i) { Assert.AreEqual("Понедельник", u); } } }
private void meanFilter2DToolStripMenuItem_Click(object sender, EventArgs e) { input inp = new input(); inp.ShowDialog(); { picbox = (PictureBox)tabControl1.TabPages[tabControl1.SelectedIndex].Controls[0]; Benchmark.Start(); picbox.Image = image[tabControl1.SelectedIndex].meanfilter(Convert.ToInt32(inp.width), Convert.ToInt32(inp.heigth), Convert.ToInt32(inp.x), Convert.ToInt32(inp.y)).source; Benchmark.End(); textBox1.Text = Benchmark.GetSeconds().ToString(); } }
private void gaussianoption1ToolStripMenuItem_Click(object sender, EventArgs e) { input inp = new input(); foreach (Control x in inp.Controls) { x.Hide(); } inp.label1.Text = "Mask Size "; inp.label1.Show(); inp.label2.Text = "Sigma"; inp.label2.Show(); inp.textBox1.Show(); inp.textBox2.Show(); inp.button1.Show(); inp.ShowDialog(); Benchmark.Start(); picbox = (PictureBox)tabControl1.TabPages[tabControl1.SelectedIndex].Controls[0]; picbox.Image = image[tabControl1.SelectedIndex].Gus1(Convert.ToInt32(inp.heigth), inp.width).source; Benchmark.End(); textBox1.Text = Benchmark.GetSeconds().ToString(); his.zeros(); his.drawing(image[tabControl1.SelectedIndex].ImageLockBitmap, this.chart1); }