Пример #1
0
 protected override void OnStop()
 {
     try
     {
         IPDTPApplication.Stop();
     }
     catch (Exception ex)
     {
         Log.Write(ex);
     }
     finally
     {
     }
 }
Пример #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     try
     {
         IPDTPApplication.Initialize();
     }
     catch (Exception ex)
     {
         Log.Write(ex);
     }
     finally
     {
     }
 }
Пример #3
0
 protected override void OnStart(string[] args)
 {
     try
     {
         IPDTPApplication.Initialize();
     }
     catch (Exception ex)
     {
         Log.Write(ex);
     }
     finally
     {
     }
 }
Пример #4
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         if (e.CloseReason == CloseReason.UserClosing)
         {
             e.Cancel = true;
             this.Hide();
         }
         else
         {
             IPDTPApplication.Stop();
         }
     }
     catch (Exception ex)
     {
         Log.Write(ex);
     }
     finally
     {
     }
 }