Beispiel #1
0
    }    // END ExitMenu_Click

    private void AboutToolStripMenuItem_Click(object sender, EventArgs e)
    {
        // TODO : you cannot embed links in the properly, create a new dialog
        //MessageBox.Show(String.Format("Meerkat BitTorrent Client v{0}\r\n\r\nBuild Date: {1}\r\n\r\nFor more info visit:\r\n\r\nhttp://www.themeerkat.net", Application.ProductVersion, RetrieveLinkerTimestamp().ToString()), "About", MessageBoxButtons.OK, MessageBoxIcon.Information);

        // show the modal dialog until the OK Cancel is	pressed
        AppFrontend.AboutBox optionsDialog = new AppFrontend.AboutBox();
        optionsDialog.ShowDialog(AppFrontend.AboutBox.AboutMode.About);
    }    // END AboutToolStripMenuItem_Click
Beispiel #2
0
    private void ShowNewVersionDialog(String version)
    {
        // Marshall the call to the ui thread
        if (InvokeRequired)
        {
            object[]       o = new object[] { version };
            InvokeDelegate d = new InvokeDelegate(ShowNewVersionDialog);
            Invoke(d, o);
        }
        else
        {
            DllInterface.sTorrentClientOptions options = new DllInterface.sTorrentClientOptions();
            DllInterface.GetTorrentClientOptions(ref options);

            if (options.mCheckForLatestBuild != 0 &&
                Application.ProductVersion.Equals(version) == false)
            {
                AppFrontend.AboutBox dialog = new AppFrontend.AboutBox();
                dialog.ShowDialog(AppFrontend.AboutBox.AboutMode.NewBuildAvailable);
            }
        }
    }