コード例 #1
0
ファイル: Form1.cs プロジェクト: KolyaCherednikov/Practice
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (thread != null)
     {
         thread = null;
     }
     Application.Exit();
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: KolyaCherednikov/Practice
 private void выходToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (thread != null)
     {
         thread = null;
     }
     Application.Exit();
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: KolyaCherednikov/Practice
 private void button2_Click(object sender, EventArgs e)
 {
     if (thread.Unit != null)
     {
         if (thread.Unit.ObjectExcel.Visible)
         {
             thread.Unit.ObjectExcel.Quit();
             thread = null;
         }
         label1.Text = "Выберите другую маршрутку";
     }
     openMarsh.PerformClick();
 }
コード例 #4
0
ファイル: Form1.cs プロジェクト: KolyaCherednikov/Practice
 public Form1()
 {
     InitializeComponent();
     thread = new RoutedThread();
 }