Beispiel #1
0
        private bool IsFormValidated()
        {
            if (BranchNameTextBox.Text.Trim() == string.Empty)
            {
                JIMessageBox.ShowErrorMessage("Branch Name is required.");

                //MessageBox.Show("Branch Name is required", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                BranchNameTextBox.Focus();
                return(false);
            }

            if (EmailTextBox.Text.Trim() == string.Empty)
            {
                JIMessageBox.ShowErrorMessage("Email is required");
                //MessageBox.Show("Email is required", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                //EmailTextBox.Focus();
                return(false);
            }

            if (MobileTextBox.Text.Trim() == string.Empty)
            {
                JIMessageBox.ShowErrorMessage("Mobile is required");
                //MessageBox.Show("Mobile is required", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                //MobileTextBox.Focus();
                return(false);
            }
            return(true);
        }
Beispiel #2
0
 private void ClearAllTextBoxButton(object sender, RoutedEventArgs e)
 {
     TeamComboBox.SelectedIndex = -1;
     DeveloperVersionNumberComboBox.SelectedIndex = -1;
     TFSWorkIdTextBox.Clear();
     BranchNameTextBox.Clear();
 }
Beispiel #3
0
        private bool isFormValid()
        {
            if (BranchNameTextBox.Text.Trim() == string.Empty)
            {
                SMSMessageBox.ShowErrorMessage("Branch Name is required");
                BranchNameTextBox.Focus();
                return(false);
            }

            if (EmailAddressTextBox.Text.Trim() == string.Empty)
            {
                SMSMessageBox.ShowErrorMessage("Email is required");
                EmailAddressTextBox.Focus();
                return(false);
            }

            if (TelephoneTextBox.Text.Trim() == string.Empty)
            {
                SMSMessageBox.ShowErrorMessage("Telephone is required");
                TelephoneTextBox.Focus();
                return(false);
            }

            return(true);
        }
Beispiel #4
0
        private void FormCreateBranch_Shown(object sender, EventArgs e)
        {
            // ensure all labels are wrapped if required
            // this must happen only after the label texts have been set
            foreach (var label in FindControls <Label>(this))
            {
                label.AutoSize = true;
            }

            BranchNameTextBox.Focus();
        }
Beispiel #5
0
        private void FormCreateBranch_Shown(object sender, EventArgs e)
        {
            // ensure all labels are wrapped if required
            // this must happen only after the label texts have been set
            foreach (var label in FindControls <Label>(this))
            {
                label.AutoSize = true;
            }

            chkbxCheckoutAfterCreate.Checked  = CheckoutAfterCreation;
            commitPickerSmallControl1.Enabled = UserAbleToChangeRevision;
            groupBox1.Enabled = CouldBeOrphan;

            BranchNameTextBox.Focus();
        }
        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);

            // ensure all labels are wrapped if required
            // this must happen only after the label texts have been set
            foreach (var label in this.FindDescendantsOfType <Label>())
            {
                label.AutoSize = true;
            }

            chkbxCheckoutAfterCreate.Checked  = CheckoutAfterCreation;
            commitPickerSmallControl1.Enabled = UserAbleToChangeRevision;
            groupBox1.Enabled = CouldBeOrphan;

            BranchNameTextBox.Focus();
        }
Beispiel #7
0
 private void FormCreateBranch_Load(object sender, EventArgs e)
 {
     BranchNameTextBox.Focus();
 }