Exemple #1
0
        public ChangeAccountModule()
        {
            InitializeComponent();
            DataContext = this;

            accController = new Controller.AccountController();

            IdentifyCode = Md5Sha1Encrypt.MD5Hashing(DateTime.Now.ToString());

            fadeAnimate = new Animation.FadeAnimate(TimeSpan.FromSeconds(3));
            this.BeginAnimation(UserControl.OpacityProperty, fadeAnimate.FadeIn());
        }
Exemple #2
0
 public static void InitData()
 {
     if (!File.Exists(CommonConstant.REMOTE_LOCKER_DATA))
     {
         PlainTextData.SaveTo(
             CommonConstant.REMOTE_LOCKER_DATA, ';',
             "admin",
             "admin",
             Md5Sha1Encrypt.MD5Hashing("RemoteLocker.Default.IdentifyCode")
             );
     }
 }
Exemple #3
0
 private void bGenerateCode_Click(object sender, RoutedEventArgs e)
 {
     IdentifyCode = Md5Sha1Encrypt.MD5Hashing(DateTime.Now.ToString());
 }