コード例 #1
0
        public frmLicenseWizard(int daysRemaining, SlyceAuthorizer.LockTypes lockType, SlyceAuthorizer.LicenseStates licenseStatus)
        {
            InitializeComponent();
            Instance = this;
            DaysRemaining = daysRemaining;
            LockType = lockType;
            LicenseStatus = licenseStatus;
            ucHeading1.Text = "";
            _ScreenStart = new ScreenStart();
            _ScreenStart.BackColor = Color.FromArgb(220, 220, 220);
            LoadScreen(_ScreenStart);

            string message;
            List<string> machineIds = SlyceAuthorizer.GetMachineIds(out message);

            if (machineIds.Count > 0)
                InstallationId = machineIds[0];
            else
                MessageBox.Show(this, message, "Error Determining InstallationID", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
コード例 #2
0
        public frmLicenseWizard(int daysRemaining, SlyceAuthorizer.LockTypes lockType, SlyceAuthorizer.LicenseStates licenseStatus)
        {
            InitializeComponent();
            Instance               = this;
            DaysRemaining          = daysRemaining;
            LockType               = lockType;
            LicenseStatus          = licenseStatus;
            ucHeading1.Text        = "";
            _ScreenStart           = new ScreenStart();
            _ScreenStart.BackColor = Color.FromArgb(220, 220, 220);
            LoadScreen(_ScreenStart);

            string        message;
            List <string> machineIds = SlyceAuthorizer.GetMachineIds(out message);

            if (machineIds.Count > 0)
            {
                InstallationId = machineIds[0];
            }
            else
            {
                MessageBox.Show(this, message, "Error Determining InstallationID", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }