コード例 #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; }
        }
コード例 #2
0
ファイル: MyPlugin.cs プロジェクト: cycorey/JiraSVN
        ///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; }
        }