private void Form1_Load(object sender, EventArgs e)
 {
     Text = $@"Auto Torrent Inspection v{Assembly.GetExecutingAssembly().GetName().Version}";
     RegistryStorage.Save(Application.ExecutablePath);
     RegistryStorage.RegistryAddCount(@"Software\AutoTorrentInspection\Statistics", @"count");
     Updater.Utils.CheckUpdateWeekly("AutoTorrentInspection");
 }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            UpdateText();

            var saved = ToolKits.String2Point(RegistryStorage.Load(@"Software\RPChecker", "location"));

            if (saved != new Point(-32000, -32000))
            {
                Location = saved;
            }
            this.NormalizePosition();
            RegistryStorage.RegistryAddCount(@"Software\RPChecker\Statistics", @"Count");

            cbFPS.SelectedIndex     = 0;
            cbVpyFile.SelectedIndex = 0;
            var current = new DirectoryInfo(AppDomain.CurrentDomain.BaseDirectory);

            cbVpyFile.Items.AddRange(current.GetFiles("*.vpy").ToArray <object>());
            btnAnalyze.Enabled = false;

            Updater.Utils.CheckUpdateWeekly("RPChecker");
            if (_rpcCollection.Any())
            {
                LoadRPCFile(_rpcCollection);
            }
        }