Exemplo n.º 1
0
        private void EditConsumer(string strID, string strConsumer)
        {
            AddUser objAddUser = new AddUser();

            objAddUser.CancelControl += new Cancel(CancelControl);
            LoadControl(objAddUser, "ConsumerList");
            objAddUser.LoadControl_Edit(strID);

            // Enabling the right buttons, you don't want to load the control multiple times.
            butAllUsers.Enabled = true;
            butAddUser.Enabled  = false;

            lblStatus.Text = "Editing Consumer - " + strConsumer;
        }
Exemplo n.º 2
0
        private void butAddUser_Click(object sender, EventArgs e)
        {
            //Loading Add User
            lblStatus.Text = "Adding new consumer";
            AddUser objAddUser = new AddUser();

            objAddUser.CancelControl += new Cancel(CancelControl);
            LoadControl(objAddUser, "ConsumerList");

            // Enabling the right buttons, you don't want to load the control multiple times.
            butAllUsers.Enabled = true;
            butAddUser.Enabled  = false;

            // objAddUser.Focus();
        }