Example #1
0
 public AdminOrUser(string NumeUser, IMDProject startpage)
 {
     InitializeComponent();
     labelWelcomeUserName.Text = "Welcome, " + NumeUser + "!";
     MemberUsername            = NumeUser;
     parentform = startpage;
 }
 public UserPage(string UserName, IMDProject startpage)
 {
     InitializeComponent();
     labelUsername.Text = UserName;
     MemberUserName     = UserName;
     ParentPageUserPage = startpage;
 }
        private void buttonLogOut_Click(object sender, EventArgs e)
        {
            this.Close();
            IMDProject startpage = new IMDProject();

            startpage.Show();
        }
 public AdminPage(string AdminName, IMDProject startpage)
 {
     InitializeComponent();
     AdminNameLabel.Text = AdminName;
     ParentPageAdminPage = startpage;
     MemberUserName      = AdminName;
 }