Пример #1
0
 private void BtnIffrm_Click(object sender, EventArgs e)
 {
     if (SqlStatu)
     {
         this.Hide();
         createCode from = new createCode(ConnectionString);
         from.Show();
     }
     else
     {
         MessageBox.Show("请配置正确的链接!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Пример #2
0
 private void BtnIffrm_Click(object sender, EventArgs e)
 {
     if (SqlStatu)
     {
         this.Hide();
         createCode   from = new createCode(ConnectionString);
         DialogResult dr   = from.ShowDialog();
         if (dr == DialogResult.Cancel)
         {
             this.Close();
         }
     }
     else
     {
         MessageBox.Show("请配置正确的链接!!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Пример #3
0
        private void b_ok_Click(object sender, EventArgs e)
        {
            try
            {
                JavaScriptSerializer        serializer = new JavaScriptSerializer();
                Dictionary <string, Object> json       = (Dictionary <string, Object>)serializer.DeserializeObject(this.rtb_jsonedit.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("JSON格式出错", "提示");
                return;
            }



            createCode codeGenerator = (createCode)this.Owner;

            codeGenerator.str_jsonschame = this.rtb_jsonedit.Text;
            Close();
        }