protected override void OnStop() { try { IPDTPApplication.Stop(); } catch (Exception ex) { Log.Write(ex); } finally { } }
private void Form1_Load(object sender, EventArgs e) { try { IPDTPApplication.Initialize(); } catch (Exception ex) { Log.Write(ex); } finally { } }
protected override void OnStart(string[] args) { try { IPDTPApplication.Initialize(); } catch (Exception ex) { Log.Write(ex); } finally { } }
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 { } }