コード例 #1
0
ファイル: Form4.cs プロジェクト: Zoltan21/Csharp
 public Clients(AdminController adminC)
 {
     InitializeComponent();
     adminController = adminC;
     DataTable dt = adminC.viewClients();
     dataGridView1.DataSource = dt;
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Zoltan21/Csharp
 private void btnLogin_Click(object sender, EventArgs e)
 {
     //Login into the application
     user = authController.login(txtUserName.Text, txtPassword.Text);
     if (user != null)
     {
         if (user.Status == 0)
         {
             ClientController clientController = new ClientController();
             Main main=new Main(clientController,user);
             main.Show(this);
             main.FormClosed += new FormClosedEventHandler(adminMain_FormClosed);
             this.Hide();
         }
         else
         {
             AdminController adminController = new AdminController();
             AdminMain adminMain = new AdminMain(adminController);
             adminMain.Show(this);
             adminMain.FormClosed += new FormClosedEventHandler(adminMain_FormClosed);
             this.Hide();
         }
     }
 }
コード例 #3
0
ファイル: AdminMain.cs プロジェクト: Zoltan21/Csharp
 public AdminMain(AdminController adminController)
 {
     InitializeComponent();
     this.adminController = adminController;
 }