static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); LoadLocations(); Form form = null; if (args.Length > 0) { switch (args[0]) { case "DailyEng": form = new frmDailyEnglish(); break; case "DailyHeb": form = new frmDailyHebrew(); break; case "MonthlyEng": form = new frmMonthlyEnglish(); break; case "MonthlyHeb": form = new frmMonthlyHebrew(); break; } } Application.Run(form ?? new frmMain()); }
private void pnlMain_MouseDoubleClick(object sender, MouseEventArgs e) { var tuple = GetTupleFromLocation(e.Location); if (tuple != null) { var f = new frmDailyEnglish { CurrentJewishDate = tuple.Item1, Owner = this }; f.Show(this); } }