Ejemplo n.º 1
0
        private void tsLapSoMoi_Click(object sender, EventArgs e)
        {
            frmSoTietKiem frm = new frmSoTietKiem();

            frm.MdiParent = this;
            frm.Show();
        }
Ejemplo n.º 2
0
        private void TileLapSoMoi_ItemClick(object sender, TileItemEventArgs e)
        {
            pnZone.Controls.Clear();
            frmSoTietKiem frmLapSoMoi = new frmSoTietKiem();

            frmLapSoMoi.TopLevel = false;
            pnZone.Controls.Add(frmLapSoMoi);
            frmLapSoMoi.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            frmLapSoMoi.AutoScroll      = true;
            frmLapSoMoi.Dock            = DockStyle.Fill;
            frmLapSoMoi.Show();
        }
Ejemplo n.º 3
0
        private void cmsSuaSTK_Click(object sender, EventArgs e)
        {
            // ' Get the current cell location.
            int currentRowIndex = dgvSoTietKiem.CurrentCellAddress.Y;// 'current row selected


            //'Verify that indexing OK
            if (-1 < currentRowIndex && currentRowIndex < dgvSoTietKiem.RowCount)
            {
                SoTietKiemDTO kn = (SoTietKiemDTO)dgvSoTietKiem.Rows[currentRowIndex].DataBoundItem;
                if (kn != null)
                {
                    frmSoTietKiem frm = new frmSoTietKiem(kn);
                    frm.ShowDialog();
                }
            }
        }