fork download
  1. private void btnLogin_Click(object sender, EventArgs e)
  2. {
  3. if (txtUserName.Text.Equals("Administrator") && txtPassword.Text.Equals("123"))
  4. {
  5. this.DialogResult = DialogResult.OK;
  6. //stockForm newStockForm = new stockForm();
  7. //newStockForm.DialogResult = DialogResult.OK;
  8.  
  9. //newStockForm.Show();
  10. //newStockForm.RegisterMainForm(this);
  11. //this.Hide();
  12. //Application.Run(new stockForm());
  13. //this.Close();
  14. }
  15. else if (txtUserName.Text.Equals("Clerk") && txtPassword.Text.Equals("123"))
  16. {
  17. this.DialogResult = DialogResult.Yes;
  18. //billForm newBillForm = new billForm();
  19. //newBillForm.DialogResult = DialogResult.Yes;
  20. //newBillForm.Show();
  21. //newBillForm.RegisterMainFormBill(this);
  22. //this.Hide();
  23. }
  24. else
  25. {
  26. MessageBox.Show("Please Enter correct details", "Login Error");
  27. }
  28. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,14): error CS0116: A namespace can only contain types and namespace declarations
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty