Пример #1
0
        private void Continue(object sender, RoutedEventArgs e)
        {
            try
            {
                string arrarar = settings.ASSKOP();

                if (Password.Password != null)
                {
                    exehs = Convert.ToBase64String(App.md5.ComputeHash(Encoding.UTF8.GetBytes(Password.Password)));
                }

                if (exehs == arrarar)
                {
                    Logs.WriteLog("Password was entered correctly!");
                    this.Close();
                }
                else
                {
                    SystemSounds.Hand.Play();

                    InfoMessage.ShowInfo("ERROR!", "Password was entered incorrectly!");
                    Logs.WriteLog("ERROR-Password was entered incorrectly!");

                    return;
                }
            }
            catch (Exception ex)
            {
                ErrorWriter.WriteError(ex);
            }
        }