3.0 - tooltip

This commit is contained in:
monitor1394
2022-02-12 20:10:29 +08:00
parent cc4ee3735c
commit a19b796a02
16 changed files with 88 additions and 36 deletions

View File

@@ -55,12 +55,12 @@ namespace XCharts
{
if (!CanAddChartComponent(type))
{
throw new InvalidOperationException("DisallowMultipleComponent:" + type.Name);
throw new InvalidOperationException("CanAddChartComponent:" + type.Name);
}
CheckAddRequireChartComponent(type);
var component = Activator.CreateInstance(type) as MainComponent;
if (component == null)
throw new InvalidOperationException("DisallowMultipleComponent:" + type.Name);
throw new InvalidOperationException("CanAddChartComponent:" + type.Name);
component.SetDefaultValue();
if (component is IUpdateRuntimeData)
(component as IUpdateRuntimeData).UpdateRuntimeData(chartX, chartY, chartWidth, chartHeight);