예제 #1
0
 /// <summary>
 /// Creates the main form
 /// </summary>
 protected override void OnCreateMainForm()
 {
     try
     {
         MainForm = new Forms.frmMain();
     }
     catch (Exception ex)
     {
         Logger.LogMessage(ex, "Error uncaught in base application:");
         throw ex;
     }
 }
예제 #2
0
 /// <summary>
 /// Starts up the next instance
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void this_StartupNextInstance(object sender, StartupNextInstanceEventArgs e)
 {
     try
     {
         Forms.frmMain form = MainForm as Forms.frmMain; //My derived form type
         form.Arguments = e.CommandLine;
     }
     catch (Exception ex)
     {
         Logger.LogMessage(ex, "Error uncaught in base application:");
         throw ex;
     }
 }