コード例 #1
0
        private void mBrowseDepotBtn_Click(object sender, EventArgs e)
        {
            checkConnect();

            DepotPathDlg dlg = new DepotPathDlg(rep);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                mSolutionPath.Text = dlg.SelectedFile;

                int lastChange = GetLastChange();
                mLastChangeLbl.Text = lastChange.ToString();
                changeAtLastBuild   = lastChange;

                // start the monitor
                MonitorChangesThread = new Thread(new ThreadStart(MonitorThreadProc));
                MonitorChangesThread.IsBackground = true;
                MonitorChangesThread.Start();
            }
        }
コード例 #2
0
        private void mBrowseDepotBtn_Click(object sender, EventArgs e)
        {
            checkConnect();

                DepotPathDlg dlg = new DepotPathDlg(rep);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    mSolutionPath.Text = dlg.SelectedFile;

                    int lastChange = GetLastChange();
                    mLastChangeLbl.Text = lastChange.ToString();
                    changeAtLastBuild = lastChange;

                    // start the monitor
                    MonitorChangesThread = new Thread(new ThreadStart(MonitorThreadProc));
                    MonitorChangesThread.IsBackground = true;
                    MonitorChangesThread.Start();
                }
        }