Exemple #1
0
 private void licenseInformationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (LicenseForm dial = new LicenseForm(Properties.Resources.about_CommServer, "Free ware", Assembly.GetEntryAssembly()))
     {
         Licenses cLicDial = new Licenses();
         dial.SetAdditionalControl = cLicDial;
         dial.LicenceRequestMessageProvider
             = new LicenseForm.LicenceRequestMessageProviderDelegate(
                   delegate() { return(cLicDial.GetLicenseMessageRequest()); });
         dial.ShowDialog();
     }
 }
 private void ShowLicenseDialog()
 {
     using (LicenseForm dial = new LicenseForm(null, null, Assembly.GetEntryAssembly()))
     {
         Licenses cLicDial = new Licenses();
         dial.SetAdditionalControl          = cLicDial;
         dial.LicenceRequestMessageProvider = new LicenseForm.LicenceRequestMessageProviderDelegate(() => cLicDial.GetLicenseMessageRequest());
         dial.ShowDialog(this);
     }
 }
Exemple #3
0
 private void m_LicenseInformationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (LicenseForm dial = new LicenseForm(null, null, Assembly.GetEntryAssembly()))
     {
         Licenses cLicDial = new Licenses();
         dial.SetAdditionalControl          = cLicDial;
         dial.LicenceRequestMessageProvider = new LicenseForm.LicenceRequestMessageProviderDelegate(delegate() { return(cLicDial.GetLicenseMessageRequest()); });
         dial.ShowDialog(this);
     }
 }
Exemple #4
0
        private void licenseInformationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string   usr    = "";
            Assembly cMyAss = Assembly.GetEntryAssembly();

            using (LicenseForm cAboutForm = new LicenseForm(null, usr, cMyAss))
            {
                using (Licenses cLicDial = new Licenses())
                {
                    cAboutForm.SetAdditionalControl          = cLicDial;
                    cAboutForm.LicenceRequestMessageProvider = new LicenseForm.LicenceRequestMessageProviderDelegate(delegate() { return(cLicDial.GetLicenseMessageRequest()); });
                    cAboutForm.ShowDialog();
                }
            }
        }