示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            confMan.InitSettings();
            if (!confMan.CheckLicense())
            {
                LicenseForm license = new LicenseForm();
                license.ShowDialog(this);
            }
            MainPage subMainPage = new MainPage();

            frmMainPanel.Controls.Clear();
            frmMainPanel.Controls.Add(subMainPage);

            lblVersion.Text   = confMan.ReturnVersion();
            btnHome.ForeColor = Color.White;
            btnHome.BackColor = Color.DimGray;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            LicenseForm license = new LicenseForm();

            license.Show();
        }