/// <summary> /// Displays the application's main form. /// </summary> public static void Main() { FrmMy = new FrmMain(); Application.Run(FrmMy); }
/// <summary> /// Perform startup operations. /// </summary> private void frmMain_Load(Object eventSender, EventArgs eventArgs) { try { FrmMy = this; Startup(); } catch (Exception ex) { DisplayException(Name, ex); throw; } }