Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
            SetDefaultCulture(System.Globalization.CultureInfo.InvariantCulture);
            Application.SetCompatibleTextRenderingDefault(false);
            //init the app object
            UVDLPApp.Instance().DoAppStartup(); // start the app and load the plug-ins
            //iterate through the plugins
            bool showlicensedialog = false;
            //iterate through all plugins,
            // if they are un-licensed and enabled - show licensing dialog.
            foreach (PluginEntry pe in UVDLPApp.Instance().m_plugins)
            {
                if (pe.m_licensed == false && pe.m_enabled == true) // if we don't have a license, and it's marked enabled
                {
                    showlicensedialog = true;
                }
                int options = pe.m_plugin.GetInt("Options");
                if (options != -1 && pe.m_enabled == true) // check to see if this plugin has options
                {
                    if ((options & PluginOptions.OPTION_TIMED_TRIAL) != 0) // check for timed trial bit
                    {
                        // check for trial version
                        //start trial version
                        if (!CheckTrial(pe))
                        {
                            //disable the plug-in
                            pe.m_enabled = false;
                        }
                    }
                }

            }
            if (showlicensedialog == true)
            {
                frmPluginManager pim = new frmPluginManager();
                pim.ShowDialog();
            }
            try
            {
            #if !DEBUG  // no splash screen under debug release

                frmSplash splash = new frmSplash(); // should pull from a licensed plug-in if need-be
                splash.Show();
            #endif
                Application.Run(new frmMain2());
            }
            catch (Exception ex)
            {
                DebugLogger.Instance().LogError(ex);
            }
        }
 private void plugInsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmPluginManager pim = new frmPluginManager();
     pim.ShowDialog();
 }
        private void plugInsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPluginManager pim = new frmPluginManager();

            pim.ShowDialog();
        }