private async Task SetUpEnvironment() { ShowdownSetLoader.SetAPILegalitySettings(); await TranslateInterface().ConfigureAwait(false); CheckVersionUpdates(); }
public void Initialize(params object[] args) { Debug.WriteLine($"[Auto Legality Mod] Loading {Name}"); SaveFileEditor = (ISaveFileProvider)Array.Find(args, z => z is ISaveFileProvider); PKMEditor = (IPKMView)Array.Find(args, z => z is IPKMView); var menu = (ToolStrip)Array.Find(args, z => z is ToolStrip); LoadMenuStrip(menu); // ALM Settings ShowdownSetLoader.SetAPILegalitySettings(); }
public void Initialize(params object[] args) { Debug.WriteLine($"[Auto Legality Mod] Loading {Name}"); SaveFileEditor = (ISaveFileProvider)Array.Find(args, z => z is ISaveFileProvider); PKMEditor = (IPKMView)Array.Find(args, z => z is IPKMView); var menu = (ToolStrip)Array.Find(args, z => z is ToolStrip); LoadMenuStrip(menu); // ReSharper disable once SuspiciousTypeConversion.Global ((ContainerControl)SaveFileEditor).ParentForm.TranslateInterface(WinFormsTranslator.CurrentLanguage); // ALM Settings ShowdownSetLoader.SetAPILegalitySettings(); }