예제 #1
0
        private void buttonAccept_Click(object sender, EventArgs e)
        {
            FormStart      form    = (FormStart)MdiParent;
            FormGetAppoint formGet = new FormGetAppoint();

            formGet.Database = database;
            formGet.Appoint  = ((Appoints)dataGridViewDispatcher.DataSource)[dataGridViewDispatcher.CurrentCell.RowIndex];
            form.AddDialog(formGet);
            RefreshData();
        }
예제 #2
0
        private void buttonToPoint_Click(object sender, EventArgs e)
        {
            Appoints appoints = (Appoints)dataGridViewInWay.DataSource;

            if (appoints.Count > 0)
            {
                FormStart      form    = (FormStart)MdiParent;
                FormGetAppoint formGet = new FormGetAppoint();
                formGet.Database = database;
                formGet.Ready    = true;
                formGet.Appoint  = ((Appoints)dataGridViewInWay.DataSource)[dataGridViewInWay.CurrentCell.RowIndex];
                form.AddDialog(formGet);
                RefreshData();
            }
        }
예제 #3
0
        private void buttonIdle_Click(object sender, EventArgs e)
        {
            Appoints appoints = (Appoints)dataGridViewDispatcher.DataSource;

            if (appoints.Count > 0)
            {
                FormStart      parent = (FormStart)MdiParent;
                FormBrakeOrOut form   = new FormBrakeOrOut();
                form.Database = database;
                form.Appoint  = ((Appoints)dataGridViewDispatcher.DataSource)[dataGridViewDispatcher.CurrentCell.RowIndex];
                form.GetOut   = false;
                parent.AddDialog(form);
                RefreshData();
            }
        }