示例#1
0
        void Edit_Click(object sender, EventArgs args)
        {
            ConnectionEditFrm frm = new ConnectionEditFrm();

            frm.UpdateConn(this);
            if (frm.ShowDialog() == DialogResult.OK)
            {
            }
        }
        void NewConnection_Click(object sender, EventArgs args)
        {
            ConnectionNode child = new ConnectionNode();

            child.Text=child.Name = Guid.NewGuid().ToString();
            child.DataInfo =  DBGlobalService.CurrentProject.CreateConnectionType();
            ConnectionEditFrm frm = new ConnectionEditFrm();
            frm.UpdateConn(child);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                child.Text = child.Name;
                child.Parent = this;
                this.OnRefresh(sender, args);
            }
        }
        void NewConnection_Click(object sender, EventArgs args)
        {
            ConnectionNode child = new ConnectionNode();

            child.Text     = child.Name = Guid.NewGuid().ToString();
            child.DataInfo = DBGlobalService.CurrentProject.CreateConnectionType();
            ConnectionEditFrm frm = new ConnectionEditFrm();

            frm.UpdateConn(child);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                child.Text   = child.Name;
                child.Parent = this;
                this.OnRefresh(sender, args);
            }
        }
示例#4
0
        void Edit_Click(object sender, EventArgs args)
        {
            ConnectionEditFrm frm = new ConnectionEditFrm();
            frm.UpdateConn(this);
            if (frm.ShowDialog() == DialogResult.OK)
            {

            }
        }