Ejemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     this.labload.Width += 3;
     if (labload.Width >= label1.Width)
     {
         this.timer1.Enabled = false;
         Form_log f = new Form_log(this);
         f.ShowInTaskbar = false;
         f.Show();
         this.Visible = false;
     }
     if (labload.Width > label1.Width / 2 && labload.Width < label1.Width / 3 * 2)
     {
         OleDbConnection conn = null;
         try
         {
             conn = Dbhelper.GetOleDbConnection();
             conn.Open();
         }
         catch
         {
             this.timer1.Enabled = false;
             MessageBox.Show("数据加载失败....");
             this.Close();
         }
         finally
         {
             conn.Close();
         }
     }
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (ControCenter.CertifyCDK(this.textBox2.Text))
     {
         this.Close();
         Form_log Log = new Form_log();
     }
     else
     {
         MessageBox.Show("激活码错误!");
     }
 }
Ejemplo n.º 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.Close();
     Form_log Log = new Form_log();
 }