private void Event_DeleteRoute(object sender, EventArgs e) { if (gridAllRoutes.CurrentCell == null) { MessageBoxLoader.Show(@"Please select route.", this); return; } if (string.IsNullOrEmpty(gridAllRoutes.CurrentCell.Value.ToString()) == false) { _waypoints.Delete(gridAllRoutes.CurrentCell.Value.ToString()); ShowContainerAllRoutes(); } }