Example #1
0
        private void тОToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdmin frm = new frmAdmin();
            dsTableAdapters.ServiceTableAdapter ta = new dsTableAdapters.ServiceTableAdapter();
            ta.Fill(ds.Service);
            frm.dgvAdmin.DataSource = ds.Service;
            frm.dgvAdmin.Update();
            frm.ShowDialog();

            ta.Update(ds.Service);
        }
Example #2
0
        private void работникиВакансииToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdmin frm = new frmAdmin();
            dsTableAdapters.V_WTableAdapter ta = new dsTableAdapters.V_WTableAdapter();
            ta.Fill(ds._V_W);
            frm.dgvAdmin.DataSource = ds._V_W;
            frm.dgvAdmin.Update();
            frm.ShowDialog();

            ta.Update(ds._V_W);
        }
Example #3
0
        private void автобусыМаршрутыToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdmin frm = new frmAdmin();
            dsTableAdapters.B_TTableAdapter ta = new dsTableAdapters.B_TTableAdapter();
            ta.Fill(ds._B_T);
            frm.dgvAdmin.DataSource = ds._B_T;
            frm.dgvAdmin.Update();
            frm.ShowDialog();

            ta.Update(ds._B_T);
        }
Example #4
0
        private void должностиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdmin frm = new frmAdmin();
            dsTableAdapters.VacationTableAdapter ta = new dsTableAdapters.VacationTableAdapter();
            ta.Fill(ds.Vacation);
            frm.dgvAdmin.DataSource = ds.Vacation;
            frm.dgvAdmin.Update();
            frm.ShowDialog();

            ta.Update(ds.Vacation);
        }
Example #5
0
 private void toolbtnReport_Click(object sender, EventArgs e)
 {
     frmAdmin frm = new frmAdmin();
     frm.ShowDialog();
 }