コード例 #1
0
        private async Task SetUpEnvironment()
        {
            ShowdownSetLoader.SetAPILegalitySettings();
            await TranslateInterface().ConfigureAwait(false);

            CheckVersionUpdates();
        }
コード例 #2
0
ファイル: AutoModPlugin.cs プロジェクト: rv2900/PKHeX-Plugins
        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();
        }
コード例 #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();
        }