private void GetConnDetails()
        {
            SessDlg sessDlg;

            if (viewOpts == null)
            {
                sessDlg = SessDlgFactory.Create();
            }
            else
            {
                sessDlg = SessDlgFactory.Create(viewOpts);
            }
            //if (sessDlg.ShowDialog() != DialogResult.OK)
            //    throw new QuietEx();
            sessDlg.Ok("10.25.25.91", "12005", false);
            opts = sessDlg.ConnOpts;
        }
        private void GetConnDetails(string ip, string port, bool readOnly)
        {
            SessDlg sessDlg;

            if (viewOpts == null)
            {
                sessDlg = SessDlgFactory.Create();
            }
            else
            {
                sessDlg = SessDlgFactory.Create(viewOpts);
            }
            //if (sessDlg.ShowDialog() != DialogResult.OK)
            //    throw new QuietEx();
            sessDlg.Ok(ip, port, readOnly);
            opts = sessDlg.ConnOpts;
        }
Exemple #3
0
        private void GetConnDetails()
        {
            SessDlg sessDlg;

            if (viewOpts == null)
            {
                sessDlg = SessDlgFactory.Create();
            }
            else
            {
                sessDlg = SessDlgFactory.Create(viewOpts);
            }
            if (sessDlg.ShowDialog() != DialogResult.OK)
            {
                throw new QuietEx();
            }
            opts = sessDlg.ConnOpts;
        }