Пример #1
0
        private void Registrations_Load(object sender, EventArgs e)
        {
            string authenticationCode = RegistrationHelper.GetAuthenticationCode();

            if (!string.IsNullOrEmpty(authenticationCode))
            {
                if (XtraMessageBox.Show("HCMIS Already registered.  Trying to register again may invalidate your current registration information.  Proceed?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.No)
                {
                    this.Close();
                }
            }

            cboUserType.Properties.Items.AddRange(RegistrationHelper.UserTypesForFE());
        }