Пример #1
0
 private void LoginBtn_Click_1(object sender, RoutedEventArgs e)
 {
     Des des = new Des();
     string pwd = des.EncryptDES(this.LoginPwd.Password.Trim(),"SatanRabbit");
     if (pwd == Properties.Settings.Default.ClintPWD)
     {
         isLogin = true;
         this.Close();
     }
     else
     {
         MessageBox.Show("密码错误!");
     }
 }
Пример #2
0
        public SetWindow()
        {
            InitializeComponent();
            this.IsVisibleChanged += delegate {
                if (this.IsVisible)
                {
                    CreatProxy();
                    InitializeLabCombobox();
                    des = new Des();
                    InitPwd();
                    SetStartCounts();
                    if (IsRegKeIsExt())
                    {
                        this.autoStartButton.Content = "取消开机启动";
                    }
                }
            };
            OpenLogin();

            this.Topmost = true;
        }