static void Main() { string subPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\Invoices"; string subPath1 = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\Invoices\\Progress"; string subPath2 = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\Invoices\\Original"; //Console.WriteLine(subPath); System.IO.Directory.CreateDirectory(subPath); System.IO.Directory.CreateDirectory(subPath1); System.IO.Directory.CreateDirectory(subPath2); Database.CreateTables(); NSeed(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ViewInvoice viewInvoice = new ViewInvoice(); viewInvoice.Size = new System.Drawing.Size(600, 700); Application.Run(viewInvoice); }
private void ViewInvoice_Click(object sender, EventArgs e) { Debug.Print("ViewInvoice"); //ViewInvoiceReport viewInvoiceReport = new ViewInvoiceReport(); //viewInvoiceReport.Show(); ViewInvoice viewInvoice = new ViewInvoice(); viewInvoice.Size = new System.Drawing.Size(1200, 700); viewInvoice.Show(); }