public void Save() { int index = Index; double[] regionGeoTransform = SelectedRegionLayerKey != null ? _rasterDic[SelectedRegionLayerKey].GeoTransform : null; RasterLayer.SaveBand(index, textBox1.Text, regionGeoTransform); }