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(); }
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(); } }
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(); } }