Example #1
0
        public static void Configurar(string maquinas)
        #pragma warning restore IDE0060 // Remove unused parameter
        {
            using var frmConfig = new FormConfig();

            frmConfig.ShowDialog();
        }
Example #2
0
        private void bntSubmit_Click(object sender, EventArgs e)
        {
            String userId   = this.txtUserID.Text;
            String password = this.txtPassword.Text;

            this.Hide();

            // Make web service call if the login is ok then show configuration box
            config = new FormConfig();
            config.ShowDialog();

            this.Show();
        }
Example #3
0
        public static void testFile()
        {
            if (Directory.Exists(ClassConstantes.Table.InitialDirectory) == true)
            {
            }


            else
            {
                FormConfig frm = new FormConfig();
                frm.ShowDialog();
            }
        }
Example #4
0
        /// <summary>
        /// Event handler for button submit
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void bntSubmit_Click(object sender, EventArgs e)
        {
            try {
                this.bntSubmit.Hide();
                if (this.txtUserID.TextLength == 0)
                {
                    this.txtUserID.Focus();
                }
                if (this.txtPassword.TextLength == 0)
                {
                    this.txtPassword.Focus();
                }

                //Added to upper to convert all the characters into uppercase
                String sessionId = await restProxy.DoLogin(this.txtUserID.Text.ToUpper() + ":" + this.txtPassword.Text);

                Console.WriteLine("sessionId: " + sessionId);

                switch (sessionId)
                {
                case BLANK:
                case GENERIC_ERROR:
                    Alert(Properties.Resources.ERR_LOGIN_EXCEPTION);
                    this.bntSubmit.Show();
                    return;

                case CREDENTIALS_ERROR:
                    Alert(Properties.Resources.ERR_LOGIN_FAIL);
                    this.bntSubmit.Show();
                    return;

                default:
                    break;
                }
                this.Hide();
                config = new FormConfig(sessionId);
                config.ShowDialog(this);
            } catch (Exception ex) {
                LogException(ex);
            }
            this.Close();
        }
        public static void testFile()
        {
            if (Directory.Exists(ClassConstantes.Table.InitialDirectory) == true)
            {
            }

            else
            {
                Directory.CreateDirectory(ClassConstantes.Table.InitialDirectory);
            }

            if (File.Exists(ClassConstantes.Table.chemin) == true)
            {
                //connec = File.ReadAllText("C:\\cheminBdCredit\\monChemin.txt");
            }
            else
            {
                FormConfig frm = new FormConfig();
                frm.ShowDialog();
            }
        }
Example #6
0
        private void btnSetting_Click(object sender, EventArgs e)
        {
            FormConfig form = new FormConfig();

            form.ShowDialog();
        }
Example #7
0
        private void configToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormConfig configForm = new FormConfig();

            configForm.ShowDialog(this);
        }
Example #8
0
        private void buttonConfig_Click(object sender, EventArgs e)
        {
            FormConfig frm = new FormConfig();

            frm.ShowDialog(this);
        }
Example #9
0
        private void empresaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormConfig frmConfig = new FormConfig();

            frmConfig.ShowDialog();
        }
Example #10
0
        public override void OnButtonPress()
        {
            var config = new FormConfig();

            config.ShowDialog();
        }
Example #11
0
        private void btnBug_Click(object sender, EventArgs e)
        {
            FormConfig FConfig = new FormConfig();

            FConfig.ShowDialog();
        }
 private void btnSetting_Click(object sender, EventArgs e)
 {
     FormConfig form = new FormConfig();
     form.ShowDialog();
 }