static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (FileHandling.SaveFileExists()) { DoubleWeekView.Double_Week_View dwv = new DoubleWeekView.Double_Week_View(); AppWideInfo.doubleWeekView = dwv; FileHandling.Load(); Application.Run(dwv); } else { DoubleWeekView.Double_Week_View dwv = new DoubleWeekView.Double_Week_View(); AppWideInfo.doubleWeekView = dwv; Application.Run(dwv); } }
private void button1_Click(object sender, EventArgs e) { DoubleWeekView.Double_Week_View dwv = new DoubleWeekView.Double_Week_View(); dwv.LoadInfo(); dwv.Show(); }