//-----------------------------------VIST RIBBON-----------------------------------// private void AddVisit_ItemClick(object sender, ItemClickEventArgs e) { AddVisit add_Visit = new AddVisit(); add_Visit.Show(); add_Visit.FormClosed += Add_Visit_FormClosed; }
private void startArrangedVisitButton_ItemClick(object sender, ItemClickEventArgs e) { ArrangedVisitParams.arrangedVisit = true; ArrangedVisitParams.arrangeVisitRow = gridViewUmowWizyte.GetFocusedDataRow(); AddVisit add_Visit = new AddVisit(); add_Visit.Show(); add_Visit.FormClosed += Add_Visit_FormClosed; ArrangedVisitParams.arrangedVisit = false; if (ArrangedVisitParams.arrangeStatus == true) { uMOW_WIZTETableAdapter.DeleteArrangedVisit(ArrangedVisitParams.arrangedVisitID); ArrangedVisitParams.arrangeStatus = false; } }