///
[STAThread] void Main ()
{. EnableVisualStyles ();. SetCompatibleTextRenderingDefault (false);. Run (new Form1 ());
}
}
}
Додаток 2
Файл В«Form1.csВ»
using
{partial class Form1: Form
{A; start; end; Form1 ()
{();
} void Form1_Load (object sender, EventArgs e)
{
} void textBox1_TextChanged (object sender, EventArgs e)
{
} void button1_Click (object sender, EventArgs e)
{= new Simulation (); = new Time (Convert.ToInt32 (StartTimeHours.Value), Convert.ToInt32 (StartTimeMin.Value)); = new Time (Convert.ToInt32 (EndTimeHours.Value) , Convert.ToInt32 (EndTimeMin.Value)); n = Convert.ToInt32 (num.Value);. Value = 0; (start> = end) MessageBox.Show ("Невірний введення");
{. StartSimulation (start, end, n, progressBar1);. Statistic (textBox1);
}
} void button2_Click (object sender, EventArgs e)
{();
} void button3_Click (object sender, EventArgs e)
{p1 = new Process ();. StartInfo.UseShellExecute = true;. StartInfo.RedirectStandardOutput = false;. StartInfo.FileName = "test.txt";. Start ();. WaitForExit ( );
}
}