Ejemplo n.º 1
0
        /// <summary>
        /// Displays login dialog box and loads customer list in treeview.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (FormLogin form = new FormLogin())
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    _customersPresenter.Display();

                    Status = LoginStatus.LoggedIn;
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Displays login dialog box and loads customer list in treeview.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (var form = new FormLogin())
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    labelAnnouncement.Visible = false;

                    _customersPresenter.Display();

                    Status = LoginStatus.LoggedIn;
                }
            }
        }
        private void btnVoltar_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("Tem certeza que deseja sair do sistema?" + txtNome.Text,
                                              "kakakak", MessageBoxButtons.YesNo);

            switch (dr)
            {
            case DialogResult.Yes:
                this.Hide();
                FormLogin formLogin = new FormLogin();
                formLogin.Show();
                break;

            case DialogResult.No:
                break;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Displays login dialog box and loads customer list in treeview.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (FormLogin form = new FormLogin())
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    _customersPresenter.Display();

                    Status = LoginStatus.LoggedIn;
                }
            }
        }