Exemple #1
0
        void NewSql_Click(object sender, EventArgs args)
        {
            var frm = new SqlEditFrm();

            frm.ConnectionString = DBGlobalService.ConnectionString;

            frm.Save += new SqlEditFrm.OnSave(frm_Save);
            frm.ShowDialog();

            //this.TreeNode.ForeColor
        }
Exemple #2
0
        protected override void OnEdit(object sender, EventArgs args)
        {
            SqlEditFrm frm = new SqlEditFrm(this.GetHashCode());

            frm.Save += new SqlEditFrm.OnSave(frm_Save);
            frm.UpdateItem(this.dataInfo, this.ConnectionString);
            frm.StartPosition = FormStartPosition.CenterScreen;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                //if ( this.dataInfo.HasPagerContentTable ())
                //    this.PagerContentDT = this.dataInfo.PagerContentTable.Value;
                //if ( this.dataInfo.HasPagerRecordCountTable())
                //    this.PagerRecordCountDT = this.dataInfo.PagerRecordCountTable.Value;
            }
            base.OnEdit(sender, args);
        }
Exemple #3
0
        void NewSql_Click(object sender, EventArgs args)
        {
            SqlEditFrm frm = new SqlEditFrm();

            frm.ConnectionString = DBGlobalService.ConnectionString;

            frm.Save += new SqlEditFrm.OnSave(frm_Save);
            frm.ShowDialog();

            //if (frm.ShowDialog() == DialogResult.OK)
            //{
            //    SqlNode sqlNode = new SqlNode();
            //    sqlNode.ConnectionString = this.ConnectionString;
            //    sqlNode.DataInfo = frm.GetItem();
            //    sqlNode.Parent = this;
            //}
        }
Exemple #4
0
        void NewSql_Click(object sender, EventArgs args)
        {
            var frm = new SqlEditFrm();
            frm.ConnectionString = DBGlobalService.ConnectionString;

            frm.Save += new SqlEditFrm.OnSave(frm_Save);
            frm.ShowDialog();

            //this.TreeNode.ForeColor
        }
Exemple #5
0
 protected override void OnEdit(object sender, EventArgs args)
 {
     SqlEditFrm frm = new SqlEditFrm(this.GetHashCode());
     frm.Save += new SqlEditFrm.OnSave(frm_Save);
     frm.UpdateItem(this.dataInfo,this.ConnectionString);
     frm.StartPosition = FormStartPosition.CenterScreen;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         //if ( this.dataInfo.HasPagerContentTable ())
         //    this.PagerContentDT = this.dataInfo.PagerContentTable.Value;
         //if ( this.dataInfo.HasPagerRecordCountTable())
         //    this.PagerRecordCountDT = this.dataInfo.PagerRecordCountTable.Value;
     }
     base.OnEdit(sender, args);
 }
        void NewSql_Click(object sender, EventArgs args)
        {
            SqlEditFrm frm = new SqlEditFrm();
            frm.ConnectionString = DBGlobalService.ConnectionString;

            frm.Save += new SqlEditFrm.OnSave(frm_Save);
            frm.ShowDialog();

            //if (frm.ShowDialog() == DialogResult.OK)
            //{
            //    SqlNode sqlNode = new SqlNode();
            //    sqlNode.ConnectionString = this.ConnectionString;
            //    sqlNode.DataInfo = frm.GetItem();
            //    sqlNode.Parent = this;
            //}
        }