示例#1
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     OpenSolution(m_StartupFileName);
     m_SplashScreenObj.CloseSplashScreen();
     m_SplashScreenObj.Dispose();
     m_SplashScreenObj = null;
 }
示例#2
0
 private void CheckSaveConstrain(StartUpSplashScreen ss)
 {
     if (!new ImportConstrain().Licensed)
     {
         m_ImportTSMI.Enabled     = false;
         m_ImportTSMI.ToolTipText = Resources.LicenseFeatureUnavailable;
     }
     if (!ExportConstrain.IsLicensed)
     {
         m_ExportToolStripMenuItem.Enabled     = false;
         m_ExportToolStripMenuItem.ToolTipText = Resources.LicenseFeatureUnavailable;
     }
     if (!CustomEditors.IsLicensed)
     {
         customEditorToolStripMenuItem.Enabled     = false;
         customEditorToolStripMenuItem.ToolTipText = Resources.LicenseFeatureUnavailable;
     }
     if (!new BuildSolutionConstrain().Licensed)
     {
         buildProjectToolStripMenuItem.Enabled     = false;
         buildProjectToolStripMenuItem.ToolTipText = Resources.LicenseFeatureUnavailable;
     }
     if (SaveConstrain.IsLicensed)
     {
         return;
     }
     saveAsToolStripMenuItem.Enabled     = false;
     saveAsToolStripMenuItem.ToolTipText = Resources.LicenseFeatureUnavailable;
     m_SaveToolStripMenuItem.Enabled     = false;
     m_SaveToolStripMenuItem.ToolTipText = Resources.LicenseFeatureUnavailable;
     ss.AppendText(string.Format(Resources.SplashScreenLicenseDemoPeriodExpired, Assembly.GetEntryAssembly().GetName().Name), true);
     ss.ActivateBuyNow();
 }