コード例 #1
0
 private void ApplyBtn_Click(object sender, RoutedEventArgs e)
 {
     if (LoginOption.IsChecked == (bool?)true)
     {
         loginVM.SetBool(true);
         MessageBox.Show("자동로그인이 적용되었습니다");
     }
     else
     {
         loginVM.SetBool(false);
         MessageBox.Show("자동로그인이 해제되었습니다");
     }
 }
コード例 #2
0
        private void LoginCheck()
        {
            LoginWin login = new LoginWin();

            login.Owner = this;

            bool?result = login.ShowDialog();

            if (result == true)
            {
                frame_content.Navigate(new Uri("view/Pages/Home.xaml", UriKind.Relative));

                if (login.CheckBox.IsChecked == (bool?)true)
                {
                    loginVM.SetBool(true);
                }
            }
        }