예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //Đổ dữ liệu vào gridControl
            //BindingSource bs = new BindingSource();
            //tv.Get_THUOC();
            //bs.DataSource = tv.Get_THUOC().Tables["THUOC"];
            //grid_a.DataSource = bs;
            UserControlMain.DonBanThuoc ucDonBanThuoc = new UserControlMain.DonBanThuoc();
            addTabControl(ucDonBanThuoc, "Đơn Bán Thuốc", "close");


            //Size mysize = new System.Drawing.Size(20, 20);
            //Bitmap bt = new Bitmap(Properties.Resources.close);
            //Bitmap btm = new Bitmap(bt, mysize);
            //closeImageAct = btm;
            ////
            ////
            //Bitmap bt2 = new Bitmap(Properties.Resources.closeBlack);
            //Bitmap btm2 = new Bitmap(bt2, mysize);
            //closeImage = btm2;
            //menu.Padding = new Point(30);
            //menu.TabPages.Remove(tab_dsdonthuoc);
            //menu.TabPages.Remove(tab_baocaohang);
            //menu.TabPages.Remove(tab_kho);
        }
예제 #2
0
 private void btnDonBanThuoc_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     UserControlMain.DonBanThuoc ucDonBanThuoc = new UserControlMain.DonBanThuoc();
     addTabControl(ucDonBanThuoc, "Đơn Bán Thuốc", "close");
 }