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