@@ -84,6 +84,15 @@ public interface IPublicAPI
84
84
/// <param name="subTitle">Optional message subtitle</param>
85
85
void ShowMsgError ( string title , string subTitle = "" ) ;
86
86
87
+ /// <summary>
88
+ /// Show the error message using Flow's standard error icon.
89
+ /// </summary>
90
+ /// <param name="title">Message title</param>
91
+ /// <param name="buttonText">Message button content</param>
92
+ /// <param name="buttonAction">Message button action</param>
93
+ /// <param name="subTitle">Optional message subtitle</param>
94
+ void ShowMsgErrorWithButton ( string title , string buttonText , Action buttonAction , string subTitle = "" ) ;
95
+
87
96
/// <summary>
88
97
/// Show the MainWindow when hiding
89
98
/// </summary>
@@ -127,6 +136,27 @@ public interface IPublicAPI
127
136
/// <param name="useMainWindowAsOwner">when true will use main windows as the owner</param>
128
137
void ShowMsg ( string title , string subTitle , string iconPath , bool useMainWindowAsOwner = true ) ;
129
138
139
+ /// <summary>
140
+ /// Show message box with button
141
+ /// </summary>
142
+ /// <param name="title">Message title</param>
143
+ /// <param name="buttonText">Message button content</param>
144
+ /// <param name="buttonAction">Message button action</param>
145
+ /// <param name="subTitle">Message subtitle</param>
146
+ /// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
147
+ void ShowMsgWithButton ( string title , string buttonText , Action buttonAction , string subTitle = "" , string iconPath = "" ) ;
148
+
149
+ /// <summary>
150
+ /// Show message box with button
151
+ /// </summary>
152
+ /// <param name="title">Message title</param>
153
+ /// <param name="buttonText">Message button content</param>
154
+ /// <param name="buttonAction">Message button action</param>
155
+ /// <param name="subTitle">Message subtitle</param>
156
+ /// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
157
+ /// <param name="useMainWindowAsOwner">when true will use main windows as the owner</param>
158
+ void ShowMsgWithButton ( string title , string buttonText , Action buttonAction , string subTitle , string iconPath , bool useMainWindowAsOwner = true ) ;
159
+
130
160
/// <summary>
131
161
/// Open setting dialog
132
162
/// </summary>
0 commit comments