Esempio n. 1
0
 private void MailStatus_Click(object sender, EventArgs e)
 {
     using (var f = new ConfigCenter())
     {
         f.SelectConfigUI <MailConfig>();
         f.ShowDialog(AppContext.HostForm);
     }
 }
Esempio n. 2
0
 void EngineAvailabilityTest_Load(object sender, EventArgs e)
 {
     using (lv.CreateBatchOperationDispatcher())
     {
         lv.Items.AddRange(ServiceManager.Instance.ResourceProviders.Select(s => CreateItem(s, s.Info, s))
                           .Concat(ServiceManager.Instance.DownloadServiceProviders.Select(s => CreateItem(s, s.Info, s)))
                           .ToArray()
                           );
     }
     btnSetProxy.Click += (s, x) =>
     {
         var dlg = new ConfigCenter();
         dlg.SelectConfigUI <NetworkOption>();
         dlg.ShowDialog(this);
     };
     btnRecheck.Click += (x, y) => RunTest();
     RunTest();
 }
Esempio n. 3
0
        void MainForm_Shown(object sender, EventArgs e)
        {
            //代理提示
            if (!AppContext.Instance.Options.ProxyWarningShown)
            {
                if (Question("您需要变更网络设置吗?"))
                {
                    var dlg = new ConfigCenter()
                    {
                        StartPosition = FormStartPosition.CenterParent
                    };
                    dlg.SelectConfigUI <NetworkOption>();
                    dlg.ShowDialog(this);
                }
                AppContext.Instance.Options.ProxyWarningShown = true;
            }

            if (!string.IsNullOrEmpty(Program.NewFeatureVersion) && AppContext.Instance.Options.NewFeatureVersion != Program.NewFeatureVersion)
            {
                new NewFeature().ShowDialog(this);
            }
        }