Exemplo n.º 1
0
 private void FrmInfo_Shown(object sender, EventArgs e)
 {
     ucInfo      = new UcInfoEnter();
     ucInfo.Dock = DockStyle.Fill;
     gr2.Controls.Add(ucInfo);
     ucInfo.GetInfoCol();
     try {
         chkbool         = Convert.ToBoolean(ClsWriteini.ReadIni());
         chkInfo.Checked = chkbool;
     } catch {
         chkbool = false;
     }
     GetinfoSql();
 }
Exemplo n.º 2
0
 private void chkInfo_CheckedChanged(object sender, EventArgs e)
 {
     if (chkInfo.Checked)
     {
         chkInfo.Text = "二录信息";
         entertag     = 2;
         ClsWriteini.WriteInt(chkbool.ToString());
         chkbool = false;
         return;
     }
     chkInfo.Text = "一录信息";
     entertag     = 1;
     ClsWriteini.WriteInt(chkbool.ToString());
     chkbool = true;
 }