예제 #1
0
        /////////// MANAGER PANEL //////////////

        private void managerAddBtn_Click(object sender, EventArgs e)
        {
            var manager = new
            {
                name     = managerName.Text.Trim(),
                username = managerUsername.Text.Trim(),
                password = managerPassword.Text.Trim(),
            };
            bool res = ManagersController.AddManager(manager);

            if (res)
            {
                reloadManager(); MessageBox.Show("Manager Added", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }