コード例 #1
0
        public MainForm()
        {
            InitializeComponent();

            ShaderTools.executableDir = executableDir;

            Config.StartupFromFile(MainForm.executableDir + "\\config.xml");
            dockContent = new DockContentST();
            dockContent = Viewport.Instance;

            GenericPluginLoader.LoadPlugin();

            foreach (var plugin in GenericPluginLoader._Plugins)
            {
                plugin.Value.MainForm     = this;
                plugin.Value.DockedEditor = dockContent;
                plugin.Value.Load();
                LoadPluginContextMenus(plugin.Value.Types);
            }
            Settings settings = new Settings(this);

            settings.Close();
            Reload();
            LoadPluginFileContextMenus();
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: vgisuruex/Switch-Toolbox
        public MainForm()
        {
            if (DebugProgram)
            {
                System.AppDomain.CurrentDomain.UnhandledException += ExceptionHandler;
            }

            InitializeComponent();
            UpdateToolbar();

            ShaderTools.executableDir = executableDir;

            try
            {
                Config.StartupFromFile(executableDir + "\\config.xml");
            }
            catch (Exception ex)
            {
                MessageBox.Show($"Failed to load config file! {ex}");
            }

            GenericPluginLoader.LoadPlugin();
            foreach (var plugin in GenericPluginLoader._Plugins)
            {
                plugin.Value.Load();
                LoadPluginContextMenus(plugin.Value.Types);
            }
            Settings settings = new Settings(this);

            settings.Close();
            Reload();
            LoadPluginFileContextMenus();
        }
コード例 #3
0
 private void LoadPLugins()
 {
     GenericPluginLoader.LoadPlugin();
     foreach (var plugin in GenericPluginLoader._Plugins)
     {
         plugin.Value.Load();
         LoadPluginContextMenus(plugin.Value.Types);
     }
 }
コード例 #4
0
        public MainForm()
        {
            InitializeComponent();
            new DiscordPresence().Initialize();

            ShaderTools.executableDir = executableDir;

            Config.StartupFromFile(MainForm.executableDir + "\\config.xml");

            GenericPluginLoader.LoadPlugin();
            foreach (var plugin in GenericPluginLoader._Plugins)
            {
                plugin.Value.Load();
                LoadPluginContextMenus(plugin.Value.Types);
            }
            Settings settings = new Settings(this);

            settings.Close();
            Reload();
            LoadPluginFileContextMenus();
        }