//=======================POINT TYPES private void PointsTypeList_CellEditEnding(object sender, DataGridCellEditEndingEventArgs e) { if (PointsTypeList.SelectedIndex != -1) { DatabaseHandler.ChangePointType(pointTypes[PointsTypeList.SelectedIndex].id, pointTypes[PointsTypeList.SelectedIndex].name); updatePointTypesHandler.Invoke(); //TODO UPDATE MAIN PAGE AND ALL OPENED POINTS } }