示例#1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            Connections_Ref();
            tv_connections.ImageList = this.imgList;
            SQLWorkbook sq = new SQLWorkbook();

            sq.Size = tabPage1.Size;
            tabPage1.Controls.Add(sq);
            connectionManager.Register(sq);
        }
示例#2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            TabPage pg_new = new TabPage();

            pg_new.Text = "Editor " + (tb.TabCount - 1).ToString();
            pg_new.Size = tb.Size;

            SQLWorkbook sq = new SQLWorkbook();

            connectionManager.Register(sq);
            sq.Size = pg_new.Size;

            pg_new.Controls.Add(sq);

            tb.TabPages.Insert(tb.TabPages.Count - 1, pg_new);
            tb.SelectedIndex = tb.TabPages.Count - 2;
        }
示例#3
0
        private void tb_SelectedIndexChanged(object sender, EventArgs e)
        {
            TabPage pg = tb.SelectedTab;

            if (pg.Name != "tb_Add")
            {
                return;
            }

            TabPage pg_new = new TabPage();

            pg_new.Text = "Editor " + (tb.TabCount - 1).ToString();
            pg_new.Size = tb.Size;

            SQLWorkbook sq = new SQLWorkbook();

            connectionManager.Register(sq);
            sq.Size = pg_new.Size;

            pg_new.Controls.Add(sq);

            tb.TabPages.Insert(tb.SelectedIndex, pg_new);
            tb.SelectedIndex = tb.SelectedIndex - 1;
        }
示例#4
0
 public frm_Export(SQLWorkbook sq)
 {
     InitializeComponent();
     sqw = sq;
 }