mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-25 04:39:25 +01:00
File import splash, disable input file drive check by default
This commit is contained in:
@@ -450,9 +450,14 @@ namespace Flowframes.Forms.Main
|
||||
_mainTabInitialized = true;
|
||||
}
|
||||
|
||||
public void Initialized()
|
||||
public static void CloseAllSplashForms ()
|
||||
{
|
||||
Application.OpenForms.OfType<SplashForm>().ToList().ForEach(f => f.Close());
|
||||
}
|
||||
|
||||
public void Initialized()
|
||||
{
|
||||
CloseAllSplashForms();
|
||||
|
||||
_initialized = true;
|
||||
runBtn.Enabled = true;
|
||||
|
||||
@@ -8,12 +8,17 @@ namespace Flowframes.Forms
|
||||
public enum TextSize { Small, Medium, Large }
|
||||
private static readonly string[] fontPresets = { "Yu Gothic UI, 14pt", "Yu Gothic UI, 18pt", "Yu Gothic UI, 21.75pt" };
|
||||
|
||||
public SplashForm(string status = "", bool topMost = true, TextSize textSize = TextSize.Large)
|
||||
public SplashForm(string status = "", bool topMost = true, TextSize textSize = TextSize.Large, bool show = true)
|
||||
{
|
||||
InitializeComponent();
|
||||
SetStatus(status);
|
||||
TopMost = topMost;
|
||||
statusLabel.Font = (Font)new FontConverter().ConvertFromInvariantString(fontPresets[(int)textSize]);
|
||||
|
||||
if (show)
|
||||
{
|
||||
Show();
|
||||
}
|
||||
}
|
||||
|
||||
private void SplashForm_Load(object sender, System.EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user