fork(1) download
  1. /// <summary>
  2. /// The main entry point for the application.
  3. /// </summary>
  4. [STAThread]
  5. static void Main()
  6. {
  7. Application.EnableVisualStyles();
  8. Application.SetCompatibleTextRenderingDefault(false);
  9. Application.Run(new mainForm());
  10. mainForm mf = new mainForm();
  11. if (mf.ShowDialog() == DialogResult.OK)
  12. {
  13. stockForm newSubForm = new stockForm();
  14. newSubForm.RegisterMainForm(mf);
  15. Application.Run(newSubForm);
  16. //newSubForm.RegisterMainForm(mf);
  17. }
  18. else if (mf.ShowDialog() == DialogResult.Yes)
  19. {
  20. billForm newSubForm = new billForm();
  21. newSubForm.RegisterMainFormBill(mf);
  22. Application.Run(newSubForm);
  23. //newSubForm.RegisterMainForm(mf);
  24. }
  25. //else
  26. //{
  27. // Application.Run(mf);
  28. //}
  29. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(5,21): error CS0116: A namespace can only contain types and namespace declarations
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty