Skip to content

Commit 0b44194

Browse files
committed
v2.4.1
1 parent 3e57acd commit 0b44194

File tree

10 files changed

+17
-16
lines changed

10 files changed

+17
-16
lines changed

.vs/QuickLibrary/v16/.suo

2.5 KB
Binary file not shown.
0 Bytes
Binary file not shown.

QuickLibrary/PluginInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public struct Function
4444
public string type;
4545
public bool inputRequired;
4646
public bool dialog;
47-
public bool hideMainWindow;
47+
public bool hideMainForm;
4848
}
4949

5050
#endregion

QuickLibrary/PluginMan.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public delegate string[] RunFunction(
1919
bool alwaysOnTop = false
2020
);
2121

22-
public delegate void PluginOutput(object sender, PluginOutputEventArgs poea);
22+
public delegate void PluginOutput(object sender, OutputEventArgs oea);
2323

24-
public class PluginOutputEventArgs : EventArgs
24+
public class OutputEventArgs : EventArgs
2525
{
26-
public object subject { get; set; }
26+
public object input { get; set; }
2727
}
2828

2929
public static PluginInfo[] GetPlugins(bool onlyAvailable)

QuickLibrary/PluginMenuItem.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public PluginMenuItem(
1717
PluginInfo pi,
1818
PluginInfo.Function func,
1919
bool alwaysOnTop,
20-
string langCode
20+
string langCode,
21+
Form mainForm = null
2122
)
2223
{
2324
Text = func.title.Get(langCode);
@@ -35,6 +36,11 @@ string langCode
3536

3637
Click += (s, e) =>
3738
{
39+
if (mainForm != null && func.hideMainForm)
40+
{
41+
mainForm.Hide();
42+
}
43+
3844
Object res;
3945
if (pi.dllType == "cpp")
4046
{
@@ -56,7 +62,7 @@ string langCode
5662
alwaysOnTop
5763
}) as Object;
5864

59-
OutputEventArgs oea = new OutputEventArgs
65+
PluginMan.OutputEventArgs oea = new PluginMan.OutputEventArgs
6066
{
6167
input = res
6268
};
@@ -67,15 +73,10 @@ string langCode
6773
Image = PluginMan.GetPluginIcon(pi.name, func.name, darkMode);
6874
}
6975

70-
protected virtual void OnOutput(OutputEventArgs e)
76+
protected virtual void OnOutput(PluginMan.OutputEventArgs e)
7177
{
7278
Output?.Invoke(this, e);
7379
}
74-
public event EventHandler<OutputEventArgs> Output;
75-
}
76-
77-
public class OutputEventArgs : EventArgs
78-
{
79-
public Object input { get; set; }
80+
public event EventHandler<PluginMan.OutputEventArgs> Output;
8081
}
8182
}

QuickLibrary/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
88
[assembly: AssemblyTitle("QuickLibrary")]
9-
[assembly: AssemblyDescription("WinForms/C# library for \"Quick\" apps (.NET Framework)")]
9+
[assembly: AssemblyDescription("WinForms control class library for \"Quick\" apps (.NET Framework)")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("Module Art")]
1212
[assembly: AssemblyProduct("QuickLibrary")]
@@ -32,6 +32,6 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("2.4.0")]
36-
[assembly: AssemblyFileVersion("2.4.0")]
35+
[assembly: AssemblyVersion("2.4.1")]
36+
[assembly: AssemblyFileVersion("2.4.1")]
3737
[assembly: NeutralResourcesLanguage("en")]
0 Bytes
Binary file not shown.
-2 KB
Binary file not shown.
0 Bytes
Binary file not shown.
-2 KB
Binary file not shown.

0 commit comments

Comments
 (0)