Пример #1
0
        private void mBtnRepoBrowser_Click(object sender, EventArgs e)
        {
            var repoBrowser = new MetroRepoBrowser(_appContext);

            if (repoBrowser.ShowDialog() == DialogResult.OK)
            {
                mTxBRepoAddress.Text = repoBrowser.SelectedRepository;
                mTxBRepoAddress_Leave(null, EventArgs.Empty);
            }
        }
Пример #2
0
        private void mBtnRepoBrowser_Click(object sender, EventArgs e)
        {
            try
            {
                var repoBrowser = new MetroRepoBrowser(_appContext);

                if (repoBrowser.ShowDialog() == DialogResult.OK)
                {
                    mTxBRepoAddress.Text = repoBrowser.SelectedRepository;
                    mTxBRepoAddress_Leave(null, EventArgs.Empty);
                }
            }
            catch
            {
                MetroMessageBox.Show(this, "Error: Unable to browse repositories.");
            }
        }