-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bribi5940
committed
Jun 23, 2023
1 parent
93a26a1
commit 9f4deb0
Showing
39 changed files
with
1,877 additions
and
2,137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using MIDIModificationFramework; | ||
using System; | ||
using System.Windows.Forms; | ||
|
||
namespace OmniConverter | ||
{ | ||
public partial class TaskStatus : UserControl | ||
{ | ||
string OgTitle = string.Empty; | ||
|
||
public TaskStatus(String MIDITitle) | ||
{ | ||
InitializeComponent(); | ||
|
||
OgTitle = MIDITitle; | ||
MIDIT.Text = OgTitle; | ||
} | ||
|
||
public void UpdateTitle(string Text) | ||
{ | ||
if (InvokeRequired) | ||
{ | ||
BeginInvoke(new MethodInvoker(() => UpdateTitle(Text)), null); | ||
return; | ||
} | ||
|
||
if (!string.IsNullOrEmpty(Text)) | ||
MIDIT.Text = $"{OgTitle} - {Text}"; | ||
else | ||
MIDIT.Text = OgTitle; | ||
} | ||
|
||
public void UpdatePBStyle(ProgressBarStyle PBM) | ||
{ | ||
if (InvokeRequired) | ||
{ | ||
BeginInvoke(new MethodInvoker(() => UpdatePBStyle(PBM)), null); | ||
return; | ||
} | ||
|
||
MIDIPB.Style = PBM; | ||
} | ||
|
||
public void UpdatePB(int PBV) | ||
{ | ||
if (InvokeRequired) | ||
{ | ||
BeginInvoke(new MethodInvoker(() => UpdatePB(PBV)), null); | ||
return; | ||
} | ||
|
||
MIDIPB.Value = PBV.LimitToRange(0, 100); | ||
} | ||
} | ||
} |
Oops, something went wrong.