File import splash, disable input file drive check by default

This commit is contained in:
N00MKRAD
2024-10-16 13:50:26 +02:00
parent 3a13e975fd
commit a521f9cfbb
5 changed files with 21 additions and 7 deletions

View File

@@ -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;

View File

@@ -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)