示例#1
0
    private void doovtests()
    {
        dotest_xover();

        logform.AppendText("Speedtest Starting");
        form.Statusbar = "Reconnecting..";
        nc.Close();
        connect();

        form.Statusbar = "Connected..";
        if (form.JoinGroup == true || form.ArtMethod == EArticleMethod.Numeric)
        {
            form.Statusbar = "Joining group";
            if (nc.Group(form.Newsgroup) == false)
            {
                form.Statusbar = nc.Response;
                return;
            }
        }
        form.Statusbar = "Initializing STAT test";
        dotest_stat();
        dotest_article();

        form.SetProgress(1);
        form.Statusbar = "Done";
        nc.Close();
        status.Detach();
    }
示例#2
0
 private void ShowLog(object sender, LogEventArgs e)
 {
     if (LogForm.InvokeRequired)
     {
         Action <LogEventArgs> action = (ev) =>
         {
             LogForm.AppendText(string.Format("[{0}] {1}", ev.level, ev.message));
             LogForm.AppendText(a);
         };
         this.LogForm.Invoke(action, e);
     }
     else
     {
         LogForm.Text += string.Format("[{0}] {1}", e.level, e.message) + a;
     }
 }