Exemple #1
0
        //recovery password
        private void linkLbPassForm_FogotPass_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var actions = new AddUserDataForm(UserDetailType.Password);

            actions.Text = @"Recovery password";
            actions.Icon = new Icon(@"icons\password_2806.ico");
            this.Visible = false;
            actions.ShowDialog();
            this.Visible = true;
        }
Exemple #2
0
        //register new user in App
        private void linkLbPassForm_Register_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var actions = new AddUserDataForm(UserDetailType.User)
            {
                Text = @"Register new user",
                Icon = new Icon(@"icons\evolution-contacts_8297.ico")
            };

            this.Visible = false;
            actions.ShowDialog();
            this.Visible = true;
        }
Exemple #3
0
        private void btAddEmail_Click(object sender, EventArgs e)
        {
            AddUserDataForm addEmail = new AddUserDataForm(_currentUserId, UserDetailType.Email);

            addEmail.Text = @"Add e-mail";
            if (ParentForm != null)
            {
                ParentForm.Visible = false;
                if (addEmail.ShowDialog() == DialogResult.OK)
                {
                    FillEmailLv();
                }
                ParentForm.Visible = true;
            }
        }
Exemple #4
0
        private void btAddPhone_Click(object sender, EventArgs e)
        {
            AddUserDataForm addPhone = new AddUserDataForm(_currentUserId, UserDetailType.Telephone);

            addPhone.Text = @"Add phone";
            if (ParentForm != null)
            {
                ParentForm.Visible = false;
                if (addPhone.ShowDialog() == DialogResult.OK)
                {
                    FillPhonesLv();
                }
                ParentForm.Visible = true;
            }
        }
Exemple #5
0
        // functionality to add address
        private void btAddAddress_Click(object sender, EventArgs e)
        {
            var addAddress = new AddUserDataForm(_currentUserId, UserDetailType.Address);

            addAddress.Text = @"Add address";
            if (ParentForm != null)
            {
                ParentForm.Visible = false;
                if (addAddress.ShowDialog() == DialogResult.OK)
                {
                    FillAddressLv();
                }
                ParentForm.Visible = true;
            }
        }