Ejemplo n.º 1
0
        public SplashScreenForm()
        {
            InitializeComponent();
            textLabel.Parent       = pictureBox;
            textLabel.BackColor    = Color.Transparent;
            versionLabel.Parent    = pictureBox;
            versionLabel.BackColor = Color.Transparent;
            versionLabel.Text     += Common.Ultility.Ultility.AssemblyVersion(Assembly.GetExecutingAssembly());

            Label_FullName.Parent    = pictureBox;
            Label_FullName.BackColor = Color.Transparent;
            Label_FullName.Text      = Common.Ultility.Ultility.APPLICATION_FULL_NAME;

#if ACADEMIC
            Label_RegistrationInfo.Text = "";
#else
            Label_RegistrationInfo.Parent    = pictureBox;
            Label_RegistrationInfo.BackColor = Color.Transparent;

            if (RegisterationForm.IsValidLicenseAvailable() == Ultility.LicenseType.Valid)
            {
                Label_RegistrationInfo.Text = Resources.Registered_Version;
            }
            else if (RegisterationForm.IsValidLicenseAvailable() == Ultility.LicenseType.Evaluation)
            {
                Label_RegistrationInfo.Text = string.Format("Evaluation Version ({0} days of {1} days)", RegisterationForm.CurrentEvaluationDays(), RegisterationForm.TotalEvaluationDays());
            }
            else if (RegisterationForm.IsValidLicenseAvailable() == Ultility.LicenseType.Invalid)
            {
                Label_RegistrationInfo.Text = Resources.Version_Expired;
            }
#endif



            progressBar.Parent = pictureBox;
            progressBar.Show();
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     Instance = this;
 }