예제 #1
0
        private void createNewUser()
        {
            getDataFromInput();
            uUser.added_date = DateTime.Now;
            uUser.added_by   = MainDashboard.USER_ID;

            bool success = dalUser.insert(uUser);

            if (success == true)
            {
                //Data Successfully Inserted
                MessageBox.Show("User successfully created");
                Close();
            }
            else
            {
                //Failed to insert data
                MessageBox.Show("Failed to add new user");
            }
        }