Ejemplo n.º 1
0
        private void Return_Button_Click(object sender, RoutedEventArgs e)
        {
            Window     currentWin = Application.Current.MainWindow;
            MainWindow mgen       = currentWin as MainWindow;

            mgen.MainPage.IsSelected = true;
            Password_Edit.Clear();
        }
        private void Confirm_Button_Click(object sender, RoutedEventArgs e)
        {
            string strPassword = ConfigurationManager.AppSettings["Password"];

            if (strPassword == Password_Edit.Password)
            {
                NavigationService.Navigate(new Uri(@"View\PageOrg\SettingWindow.xaml", UriKind.Relative));
            }
            else
            {
                Password_Edit.Clear();
                MessageBox.Show(@"密码输入错误,请重新输入!");
            }
        }
Ejemplo n.º 3
0
        private void Confirm_Button_Click(object sender, RoutedEventArgs e)
        {
            string strPassword = ConfigurationManager.AppSettings["Password"];

            if (strPassword == Password_Edit.Password)
            {
                Window     currentWin = Application.Current.MainWindow;
                MainWindow mgen       = currentWin as MainWindow;
                mgen.SettingWindow.IsSelected = true;
            }
            else
            {
                MessageBox.Show(@"密码输入错误,请重新输入!");
            }
            Password_Edit.Clear();
        }
Ejemplo n.º 4
0
        private void Confirm_Button_Click(object sender, RoutedEventArgs e)
        {
            string strPassword = ConfigurationManager.AppSettings["Password"];

            if (strPassword == Password_Edit.Password)
            {
                SettingWindow SettingWindowWin = new SettingWindow();
                SettingWindowWin.ParentWindow = ParentWindow;
                SettingWindowWin.Show();
                this.Close();
            }
            else
            {
                Password_Edit.Clear();
                MessageBox.Show(@"密码输入错误,请重新输入!");
            }
        }
        private void Return_Button_Click(object sender, RoutedEventArgs e)
        {
            string strDisplayInch = ConfigurationManager.AppSettings["DisplayInch"];

            Password_Edit.Clear();
            if (strDisplayInch == "19" || strDisplayInch == "19_3" || strDisplayInch == "19_4")
            {
                Window     currentWin = Application.Current.MainWindow;
                MainWindow mgen       = currentWin as MainWindow;
                mgen.MainPage.IsSelected = true;
            }
            else if (strDisplayInch == "19_2")
            {
                Window     currentWin = Application.Current.MainWindow;
                MainWindow mgen       = currentWin as MainWindow;
                mgen.MainPage.IsSelected = true;
            }
        }