ImageGlass.frmExtension.LoadExtensions C# (CSharp) Method

LoadExtensions() private method

private LoadExtensions ( ) : void
return void
        private void LoadExtensions()
        {
            tvExtension.Nodes.Clear();

            string pluginsDir = Path.Combine(Application.StartupPath, "Plugins");

            if (!Directory.Exists(pluginsDir))
            {
                Directory.CreateDirectory(pluginsDir);
            }
            else
            {
                Global.Plugins.FindPlugins(pluginsDir);

                foreach (ImageGlass.Plugins.Types.AvailablePlugin p in Global.Plugins.AvailablePlugins)
                {
                    TreeNode n = new TreeNode(p.Instance.Name);
                    tvExtension.Nodes.Add(n);
                    n = null;
                }
            }
        }