This PlotModel is already in use by some other PlotView control. (#497)
This commit is contained in:
Родитель
68bdf140da
Коммит
401d44bcd2
|
@ -81,6 +81,7 @@ All notable changes to this project will be documented in this file.
|
|||
- Fix StringFormat for TimeSpanAxis not recognizing f, ff, fff, etc (#330)
|
||||
- Fix LineSeries SMOOTH=True will crash WinForms on right click (#499)
|
||||
- Fix PlotView leak on iOS (#503)
|
||||
- This PlotModel is already in use by some other PlotView control (#497)
|
||||
|
||||
## [2014.1.546] - 2014-10-22
|
||||
### Added
|
||||
|
|
|
@ -116,12 +116,6 @@ namespace OxyPlot.MonoTouch
|
|||
|
||||
if (value != null)
|
||||
{
|
||||
if (value.PlotView != null)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"This PlotModel is already in use by some other PlotView control.");
|
||||
}
|
||||
|
||||
((IPlotModel)value).AttachPlotView(this);
|
||||
this.model = value;
|
||||
}
|
||||
|
|
|
@ -126,11 +126,6 @@ namespace OxyPlot.Xamarin.Android
|
|||
|
||||
if (value != null)
|
||||
{
|
||||
if (value.PlotView != null)
|
||||
{
|
||||
throw new InvalidOperationException("This PlotModel is already in use by some other PlotView control.");
|
||||
}
|
||||
|
||||
((IPlotModel)value).AttachPlotView(this);
|
||||
this.model = value;
|
||||
}
|
||||
|
|
|
@ -98,11 +98,6 @@ namespace OxyPlot.Xamarin.Mac
|
|||
|
||||
if (value != null)
|
||||
{
|
||||
if (value.PlotView != null)
|
||||
{
|
||||
throw new InvalidOperationException("This PlotModel is already in use by some other PlotView control.");
|
||||
}
|
||||
|
||||
((IPlotModel)value).AttachPlotView(this);
|
||||
this.model = value;
|
||||
}
|
||||
|
|
|
@ -109,12 +109,6 @@ namespace OxyPlot.Xamarin.iOS
|
|||
|
||||
if (value != null)
|
||||
{
|
||||
if (value.PlotView != null)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"This PlotModel is already in use by some other PlotView control.");
|
||||
}
|
||||
|
||||
((IPlotModel)value).AttachPlotView(this);
|
||||
this.model = value;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче