Esempio n. 1
0
        /// <summary>
        /// Shows an open file dialog and installs the selected license file
        /// </summary>
        private void installbutton_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                // Embedded the selected license file within the corresponding main application.
                //
                EvaluationMonitor.StoreLicenseAsResource(openFileDialog1.FileName);

                // Load the license file to update the current license status. The next time you run the main application the stored
                // license file will be found and loaded automatically.
                //
                EvaluationMonitor.LoadLicense(openFileDialog1.FileName);
            }
        }