Exemple #1
0
        void startss(object devmode)
        {
            SS x = null;

            if (!((bool)devmode))
            {
                x = new SS();
                x.Show();
            }
            if (x != null)
            {
                x.labelX4.Text = "Loading Plug - In's...";
            }
            try
            {
                ToolStripMenuItem current = new ToolStripMenuItem("Current Plugins");
                string[]          flz     = Directory.GetFiles(Application.StartupPath + "/plugins");
                foreach (string s in flz)
                {
                    try
                    {
                        if (Path.GetExtension(s) != ".dll" || Path.GetFileName(s).ToLower() == "x360.dll")
                        {
                            continue;
                        }
                        LFPlugIn v = new LFPlugIn(s);
                        if (v.valid)
                        {
                            current.DropDownItems.Add(v.Name, null, new EventHandler(plugclick));
                            current.DropDownItems[current.DropDownItems.Count - 1].Tag = v;
                        }
                    }
                    catch { }
                }
                pluginsToolStripMenuItem.DropDownItems.Add(current);
                pluginsToolStripMenuItem.DropDownItems.Add("Download Plugins", null, new EventHandler(download_click));
            }
            catch { }
            if (x != null)
            {
                while (x.Visible)
                {
                    Application.DoEvents();
                }
            }
            Thread.CurrentThread.Abort();
        }
Exemple #2
0
        void startss(object devmode)
        {
            SS x = null;
            if (!((bool)devmode))
            {
                x = new SS();
                x.Show();
            }
            if (x != null)
                x.labelX4.Text = "Loading Plug - In's...";
            try
            {
                ToolStripMenuItem current = new ToolStripMenuItem("Current Plugins");
                string[] flz = Directory.GetFiles(Application.StartupPath + "/plugins");
                foreach (string s in flz)
                {
                    try
                    {
                        if (Path.GetExtension(s) != ".dll" || Path.GetFileName(s).ToLower() == "x360.dll")
                            continue;
                        LFPlugIn v = new LFPlugIn(s);
                        if (v.valid)
                        {
                            current.DropDownItems.Add(v.Name, null, new EventHandler(plugclick));
                            current.DropDownItems[current.DropDownItems.Count - 1].Tag = v;
                        }
                    }
                    catch { }
                }
                pluginsToolStripMenuItem.DropDownItems.Add(current);
                pluginsToolStripMenuItem.DropDownItems.Add("Download Plugins", null, new EventHandler(download_click));

            }
            catch { }
            if (x != null)
            {
                while (x.Visible)
                    Application.DoEvents();
            }
            Thread.CurrentThread.Abort();
        }