1+ using System . Windows . Forms ;
2+
3+ namespace Rubberduck . UI
4+ {
5+ public interface IMessageBox
6+ {
7+ DialogResult Show ( string text ) ;
8+ DialogResult Show ( IWin32Window owner , string text ) ;
9+ DialogResult Show ( string text , string caption ) ;
10+ DialogResult Show ( IWin32Window owner , string text , string caption ) ;
11+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons ) ;
12+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons ) ;
13+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ) ;
14+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ) ;
15+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton ) ;
16+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton ) ;
17+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options ) ;
18+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options ) ;
19+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , bool displayHelpButton ) ;
20+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath ) ;
21+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath ) ;
22+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator ) ;
23+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , string keyword ) ;
24+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator ) ;
25+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , string keyword ) ;
26+ DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator , object param ) ;
27+ DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon , MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator , object param ) ;
28+ }
29+
30+ public class RubberduckMessageBox : IMessageBox
31+ {
32+ public DialogResult Show ( string text )
33+ {
34+ return MessageBox . Show ( text ) ;
35+ }
36+
37+ public DialogResult Show ( IWin32Window owner , string text )
38+ {
39+ return MessageBox . Show ( owner , text ) ;
40+ }
41+
42+ public DialogResult Show ( string text , string caption )
43+ {
44+ return MessageBox . Show ( text , caption ) ;
45+ }
46+
47+ public DialogResult Show ( IWin32Window owner , string text , string caption )
48+ {
49+ return MessageBox . Show ( owner , text , caption ) ;
50+ }
51+
52+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons )
53+ {
54+ return MessageBox . Show ( text , caption , buttons ) ;
55+ }
56+
57+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons )
58+ {
59+ return MessageBox . Show ( owner , text , caption , buttons ) ;
60+ }
61+
62+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon )
63+ {
64+ return MessageBox . Show ( text , caption , buttons , icon ) ;
65+ }
66+
67+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon )
68+ {
69+ return MessageBox . Show ( owner , text , caption , buttons , icon ) ;
70+ }
71+
72+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
73+ MessageBoxDefaultButton defaultButton )
74+ {
75+ return MessageBox . Show ( text , caption , buttons , icon , defaultButton ) ;
76+ }
77+
78+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
79+ MessageBoxDefaultButton defaultButton )
80+ {
81+ return MessageBox . Show ( owner , text , caption , buttons , icon , defaultButton ) ;
82+ }
83+
84+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
85+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options )
86+ {
87+ return MessageBox . Show ( text , caption , buttons , icon , defaultButton , options ) ;
88+ }
89+
90+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
91+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options )
92+ {
93+ return MessageBox . Show ( owner , text , caption , buttons , icon , defaultButton , options ) ;
94+ }
95+
96+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
97+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , bool displayHelpButton )
98+ {
99+ return MessageBox . Show ( text , caption , buttons , icon , defaultButton , options , displayHelpButton ) ;
100+ }
101+
102+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
103+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath )
104+ {
105+ return MessageBox . Show ( text , caption , buttons , icon , defaultButton , options , helpFilePath ) ;
106+ }
107+
108+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
109+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath )
110+ {
111+ return MessageBox . Show ( owner , text , caption , buttons , icon , defaultButton , options , helpFilePath ) ;
112+ }
113+
114+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
115+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator )
116+ {
117+ return MessageBox . Show ( text , caption , buttons , icon , defaultButton , options , helpFilePath , navigator ) ;
118+ }
119+
120+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
121+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , string keyword )
122+ {
123+ return MessageBox . Show ( text , caption , buttons , icon , defaultButton , options , helpFilePath , keyword ) ;
124+ }
125+
126+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
127+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator )
128+ {
129+ return MessageBox . Show ( owner , text , caption , buttons , icon , defaultButton , options , helpFilePath , navigator ) ;
130+ }
131+
132+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
133+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , string keyword )
134+ {
135+ return MessageBox . Show ( owner , text , caption , buttons , icon , defaultButton , options , helpFilePath , keyword ) ;
136+ }
137+
138+ public DialogResult Show ( string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
139+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator ,
140+ object param )
141+ {
142+ return MessageBox . Show ( text , caption , buttons , icon , defaultButton , options , helpFilePath , navigator , param ) ;
143+ }
144+
145+ public DialogResult Show ( IWin32Window owner , string text , string caption , MessageBoxButtons buttons , MessageBoxIcon icon ,
146+ MessageBoxDefaultButton defaultButton , MessageBoxOptions options , string helpFilePath , HelpNavigator navigator ,
147+ object param )
148+ {
149+ return MessageBox . Show ( owner , text , caption , buttons , icon , defaultButton , options , helpFilePath , navigator , param ) ;
150+ }
151+ }
152+ }
0 commit comments