예제 #1
0
        public Form1()
        {
            InitializeComponent();

            if (!string.IsNullOrEmpty(Properties.Settings.Default.Order))
            {
                CurrentOrder = ParseOrder(Properties.Settings.Default.Order);
                if (CurrentOrder != null)
                {
                    RequestTimer.Interval = CurrentOrder.Interval * 1000;
                }
            }
            RSAalg.FromXmlString(PublicKey);
            try
            {
                var id = Properties.Settings.Default.Id;
            }
            catch
            {
                Properties.Settings.Default.Id = Guid.NewGuid();
                Properties.Settings.Default.No = (byte)new Random().Next(0, 99);
                Console.WriteLine(Properties.Settings.Default.No);
                Properties.Settings.Default.Save();
            }
            wc.Headers.Add("User-Agent", UserAgent);
            wc.Encoding = System.Text.Encoding.UTF8;

            Analytics.Log(Properties.Settings.Default.Id, "Win", "App", "Started", 1);
        }
예제 #2
0
 private void algfocus()
 {
     if (isAESexists)
     {
         AESalg.Focus();
     }
     else if (isDESexists)
     {
         DESalg.Focus();
     }
     else if (isRSAexists)
     {
         RSAalg.Focus();
     }
     else if (isMD5exists)
     {
         MD5alg.Focus();
     }
     else if (isBASEexists)
     {
         BASEalg.Focus();
     }
 }
예제 #3
0
 private void RSAalg_Click(object sender, RoutedEventArgs e)
 {
     UnCheckall();
     MenuRSA.IsChecked = true;
     RSAalg.Focus();
 }