Exemple #1
0
        private void userBrowseBtn_Click(object sender, EventArgs e)
        {
            UsersBrowserDlg dlg = new UsersBrowserDlg(_scm, null);

            if (DialogResult.Cancel != dlg.ShowDialog())
            {
                userTB.Text = dlg.SelectedUser.Id.ToString();
            }
        }
Exemple #2
0
        private void BrowseUserBtn_Click(object sender, EventArgs e)
        {
            this.TopMost = false;

            P4ScmProvider _scm = new P4ScmProvider(null);

            _scm.Connection.Port = ServerPort;

            _scm.Connection.Connect(true, null, true);
            if (_scm.Connected && _scm.Connection.ServerConnected())
            {
                UsersBrowserDlg dlg = new UsersBrowserDlg(_scm, null);

                dlg.TopMost = true;;

                if ((DialogResult.Cancel != dlg.ShowDialog()) && (dlg.SelectedUser.Id != null))
                {
                    UserTB.Text = dlg.SelectedUser.Id;
                }
            }
            _scm.Dispose();

            this.TopMost = true;;
        }