本文整理汇总了C#中ValueMatrixShort.Close方法的典型用法代码示例。如果您正苦于以下问题:C# ValueMatrixShort.Close方法的具体用法?C# ValueMatrixShort.Close怎么用?C# ValueMatrixShort.Close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ValueMatrixShort
的用法示例。
在下文中一共展示了ValueMatrixShort.Close方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReleaseAndDeleteValueMatrixShort
private void ReleaseAndDeleteValueMatrixShort(ValueMatrixShort vms)
{
if (vms != null)
{
if (vms.MatrixBlockArr != null)
{
foreach (ValueMatrixBlock block in vms.MatrixBlockArr)
{
if (block.ShortMatrix != null)
{
if (block.ShortMatrix.IsOpen)
{
block.ShortMatrix.Close(true);
}
block.ShortMatrix = null;
}
}
}
if (vms.IsOpen)
{
vms.Close(true);
}
vms = null;
}
}
示例2: ThroughputShow
private void ThroughputShow(PredictionGroup pg, PredictionStudy ps)
{
this.ClearDiscreteMapLayer(ps);
string savePath = this.GetSavePath(ps);
this.m_ValueCollectionInt = ps.StudyValueMatrix as ValueMatrixIntCollection;
this.m_ValueCollectionInt.Open(this.m_SubSysInterface.ProjectManager);
Dictionary<short, Color> discreteColorDict = new Dictionary<short, Color>();
this.m_DefaultColor = Color.FromArgb(0, Color.White);
List<MaxMinValue> maxMinValueList = this.GenerateColorDict(ps, discreteColorDict);
foreach (ValueMatrixInt num in this.m_ValueCollectionInt.Values)
{
ValueMatrixShort throughputValueMatrix = new ValueMatrixShort(savePath, string.Empty, num.RowsCount, num.ColumnsCount);
throughputValueMatrix.SetParam(num.NorthwestX, num.NorthwestY, (float) num.Resolution);
throughputValueMatrix.SetValue(num.InvalidValue, num.NotCalcValue, num.DefaultValue);
this.GenerateValueMatrixForGeo(maxMinValueList, num, throughputValueMatrix);
string str2 = Enum.GetName(typeof(PredictionStudyType), ps.StudyType).Replace('_', ' ');
GeoDiscreteEventArgs args = new GeoDiscreteEventArgs(throughputValueMatrix, discreteColorDict, this.m_DefaultColor);
args.m_PolygonRegion = this.m_PredictionGroup.Region;
int layerId = this.m_SubSysInterface.AnalyDispEvent.AnalyGeoDiscreteLayerMsgChanged(args);
ps.StudyLegend.MapLever = layerId;
this.UpdateTreeNodeTag(pg, ps, layerId);
throughputValueMatrix.Close(false);
}
this.m_ValueCollectionInt.Close(false);
}