Argument Type NOT Assignable to Parameter Type Error re: Dundas Charts

I am getting an error warning, Argument type '__ReSharper_TagPrefix_DCWC.Chart' is not assignable to parameter type 'Dundas.Charting.WebControl.Chart', and I cannot resolve this although code builds and works. I am sure that this is related to the ambiguous reference error I mentioned in thread at http://www.intellij.net/forums/post!default.jspa?forumID=59

Is there a way to get


protected void StaticChart_CallbackComplete(object sender, CommandEventArgs e)
{
if (ChartConstant.ZoomCommandName == e.CommandName)
{
processCommandStatus(this.GraphChart); *<== ERROR WARNING IS HERE*
}
}
private void processCommandStatus(Dundas.Charting.WebControl.Chart theChart)
{
Command cmd1 = theChart.UI.Commands.FindCommand(ChartConstant.ZoomInCmdId);
cmd1.Enabled = (theChart.ChartAreas[0].AxisX.View.MinSize != theChart.ChartAreas[0].AxisX.View.Size);
Command cmd2 = theChart.UI.Commands.FindCommand(ChartConstant.ZoomOutCmdId);
cmd2.Enabled = !Double.IsNaN(theChart.ChartAreas[0].AxisX.View.Size);
}

1 comment

Please could you provide small complete solution which demonstrates this
problem?
Thank you in advance

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Peter Petrillo" <pmpjr2k7@gmail.com> wrote in message
news:20348589.56071219333659875.JavaMail.jive@app4.labs.intellij.net...
>I am getting an error warning, +*Argument type
>'__ReSharper_TagPrefix_DCWC.Chart' is not assignable to parameter type
>'Dundas.Charting.WebControl.Chart'*+, and I cannot resolve this although
>code builds and works. I am sure that this is related to the ambiguous
>reference error I mentioned in thread at
>http://www.intellij.net/forums/post!default.jspa?forumID=59
>

Is there a way to get

>
>

protected void StaticChart_CallbackComplete(object sender,
CommandEventArgs e)
{
if (ChartConstant.ZoomCommandName == e.CommandName)
{
processCommandStatus(this.GraphChart); *<== ERROR WARNING IS HERE*
}
}
private void processCommandStatus(Dundas.Charting.WebControl.Chart
theChart)
{
Command cmd1 =
theChart.UI.Commands.FindCommand(ChartConstant.ZoomInCmdId);
cmd1.Enabled = (theChart.ChartAreas[0].AxisX.View.MinSize !=
theChart.ChartAreas[0].AxisX.View.Size);
Command cmd2 =
theChart.UI.Commands.FindCommand(ChartConstant.ZoomOutCmdId);
cmd2.Enabled = !Double.IsNaN(theChart.ChartAreas[0].AxisX.View.Size);
}



0

Please sign in to leave a comment.