Esempio n. 1
0
        ///TODO: - need to complete implementation for options dialog
        string IBugTraqProvider2.ShowOptionsDialog(IntPtr hParentWnd, string parameters)
        {
            try
            {
                OptionUrlEntry dlg = new OptionUrlEntry(parameters, GetParamDesc());

                if (dlg.ShowDialog(Win32Window.FromHandle(hParentWnd)) == DialogResult.OK)
                {
                    return(dlg.ServiceUri.Text);
                }

                return(parameters);
            }
            catch (Exception e) { Log.Error(e); throw; }
        }
Esempio n. 2
0
        ///TODO: - need to complete implementation for options dialog
        string IBugTraqProvider2.ShowOptionsDialog(IntPtr hParentWnd, string parameters)
        {
            try
            {
                OptionUrlEntry dlg = new OptionUrlEntry(parameters, GetParamDesc());

                if (dlg.ShowDialog(Win32Window.FromHandle(hParentWnd)) == DialogResult.OK)
                    return dlg.ServiceUri.Text;

                return parameters;
            }
            catch (Exception e) { Log.Error(e); throw; }
        }