Ejemplo n.º 1
0
        private async Task SetUpEnvironment()
        {
            ShowdownSetLoader.SetAPILegalitySettings();
            await TranslateInterface().ConfigureAwait(false);

            CheckVersionUpdates();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }