Пример #1
0
        private void button_Register_Click(object sender, EventArgs e)
        {
            var MyForm = new RegistrationForm();

            MyForm.Show();
            this.Hide();
        }
Пример #2
0
        private void RegisterBT_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            RegistrationForm registrationForm = new RegistrationForm();

            registrationForm.Show();
        }
Пример #3
0
        private void linkRegistration_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            RegistrationForm regForm = new RegistrationForm();

            this.Hide();
            regForm.Show();
        }
Пример #4
0
        private void btnHomePageLogin_Click(object sender, EventArgs e)
        {
            switch (cmbxHomePAgeUserType.SelectedItem.ToString())
            {
            case "Teacher":
                //LocalStorage.homePage = this;
                TeacherForm teacher = new TeacherForm();
                teacher.Show();
                //this.Hide();
                break;

            case "Mentor":
                var form3 = new MentorForm();
                form3.Show();
                break;

            case "Student":
                var form4 = new StudentForm();
                form4.Show();
                break;

            case "Admin":
                var form1 = new RegistrationForm();
                form1.Show();
                break;
            }
        }
        private void SignUpLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var registrationForm = new RegistrationForm();

            registrationForm.OwnerForm = ParentForm as MainForm;
            registrationForm.Show();
        }
Пример #6
0
 private void SignUpLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     {
         RegistrationForm registerUser = new RegistrationForm();
         registerUser.Show();
         this.Hide();
     }
 }
Пример #7
0
        private void btn_order_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Məhsulu sifariş etmək üçün qeydiyyatdan keçməlisiniz.");
            RegistrationForm registration = new RegistrationForm();

            registration.Show();
            this.Parent.Parent.Visible = false;
        }
Пример #8
0
 private void Register()
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         var window = Application.Current.MainWindow;
         RegistrationForm regForm       = new RegistrationForm();
         Application.Current.MainWindow = regForm;
         regForm.Show();
         window.Close();
     });
 }
Пример #9
0
        private void button1_Click(object sender, EventArgs e)
        {
            activeTab = 1;
            CheckActiveTab();
            panel1.Controls.Clear();
            RegistrationForm reg = new RegistrationForm();

            reg.TopLevel   = false;
            reg.AutoScroll = true;
            this.panel1.Controls.Add(reg);
            reg.Show();
        }
Пример #10
0
 /// <summary>
 /// Handles the Click event of the Edit control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     if (EmployeeDG.SelectedIndex != -1)
     {
         Employee         SelectedEmployee = (Employee)EmployeeDG.SelectedItems[0];
         RegistrationForm form             = new RegistrationForm(SelectedEmployee);
         form.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("please select a record!");
     }
 }
        private void registerCustomerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (registrationForm == null)
            {
                CreateNewRegistrationForm();
            }

            if (registrationForm.registrationFormFormClosed)
            {
                CreateNewRegistrationForm();
            }

            registrationForm.Show();
        }
Пример #12
0
        private void dgv_Registrations_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                int lastSegment        = int.Parse(CommonFunctions.getLastPart(dgv_Registrations.Rows[e.RowIndex].Cells[0].Value.ToString()));
                RegistrationForm forma = new RegistrationForm
                {
                    matchId = lastSegment,
                    isLive  = dgv_Registrations.Rows[e.RowIndex].Cells[0].Value.ToString().Contains("live")
                };

                forma.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Greška, zovi Bokca, ovo je greška: " + ex.ToString());
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (salary_tb.Text.Length == 0 || qualification_tb.Text.Length == 0)
            {
                MessageBox.Show("Остались пустые поля", "Ошибка ввода", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                try
                {
                    int  salary        = int.Parse(salary_tb.Text);
                    int  qualification = int.Parse(qualification_tb.Text);
                    Form registerForm  = new RegistrationForm(this.parentForm, 2, salary, qualification);
                    registerForm.Show();

                    loadTable();
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Неправильный ввод данных", "Ошибка ввода", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
Пример #14
0
        private void signUp_lbl_Click(object sender, EventArgs e)
        {
            RegistrationForm registerForm = new RegistrationForm(this, 3, -1, -1);

            registerForm.Show();
        }
Пример #15
0
 public void openRegistrationForm(Form sender)
 {
     sender.Hide();
     registrationForm.Show();
 }
Пример #16
0
        public static void OpenRegistrationForm()
        {
            RegistrationForm registrationForm = new RegistrationForm();

            registrationForm.Show();
        }
Пример #17
0
        private void btnHomePageRegistration_Click(object sender, EventArgs e)
        {
            var registrationForm = new RegistrationForm();

            registrationForm.Show();
        }
Пример #18
0
        private void btn_Reg_Click(object sender, EventArgs e)
        {
            RegistrationForm reg_f = new RegistrationForm();

            reg_f.Show();
        }