Exemplo n.º 1
0
        private void Display_Click(string Message)
        {
            SecondaryWindow secondWindow = new SecondaryWindow();

            secondWindow.lyricBox.Text = Message;
            secondWindow.Show();
        }
Exemplo n.º 2
0
        private void BtnLogin_Click(object sender, RoutedEventArgs e)
        {
            int count = PersonneORM.getLoginCount(TextboxUsername.Text, PasswordBox.Password);

            if (count == 1)
            {
                SecondaryWindow secondaryWindow = new SecondaryWindow();
                Close();
                secondaryWindow.Show();
            }
            else
            {
                MessageBox.Show("L'identifiant ou le mot de passe sont incorrects.");
            }
        }
Exemplo n.º 3
0
        public void Start()
        {
            this.m_HistologyGrossDialog = new HistologyGrossDialog();
            this.m_HistologyGrossDialog.Closing += new System.ComponentModel.CancelEventHandler(HistologyGrossDialog_Closing);
            this.m_HistologyGrossDialog.Show();

            if (this.m_HistologyGrossDialog.PageNavigator.HasDualMonitors() == true)
            {
                this.m_SecondaryWindow = new SecondaryWindow();
                this.m_HistologyGrossDialog.PageNavigator.ShowSecondMonitorWindow(this.m_SecondaryWindow);
                this.m_HistologyGrossDialog.PageNavigator.SecondMonitorWindow.WindowState = System.Windows.WindowState.Maximized;
                BlankPage blankPage = new BlankPage();
                this.m_SecondaryWindow.PageNavigator.Navigate(blankPage);
            }

            this.ShowScanSecurityBadgePage();
        }