We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Controller.Execute fails, how i can get the reason ?

Thread ID:





44548 May 26,2006 02:41 AM May 30,2006 12:30 AM Windows Forms 3
Tags: Diagram
Werner Mairl
Asked On May 26, 2006 02:41 AM

Hi! In certain situations the ExecuteCommand(InsertNodesCmd) on my Controller returns false! How i can get the reason (details) for this ? I have not found a event to get detailed information! The only information that i can get is, that Command.ResultNodes.Count==0.... thx werner

Meera Fathima [Syncfusion]
Replied On May 26, 2006 10:47 AM

Hi, If possible could you please provide us some more informations about when you run into this problem. So that it will be easier for us to have a closer look into the issue. And referring to the Essential Diagram documentation will help you to get more details about what you are looking for. Thank you for your support to Syncfusion. Regards, Meera.

Werner Mairl
Replied On May 26, 2006 12:27 PM

Hi I have a code segment like this this._diagram.Controller.ExecuteCommand(insCommand) But the resul result of the function is false! (without exception) I want get the reason (as result/expression/property/event from the diagram/controller) why the Command is failed! i can use a property (why) a event (why) or any other mechanism to get the reason for this failure ? thx werner

Werner Mairl
Replied On May 30, 2006 12:30 AM

I have reviewed the latest source and i have found the right answer! => it is a big design error in the Controller/Command Code the code for bool ExecuteCommand(Command insertCommand) contains a codesegment like the following: if (conditionA==false) || (ConditionB==false)return false with this style of coding, my question (and i think that i am not the unique developer with this question) can not be answerded! the right syntx for this codesegemnt can be: if (ConditionA==false) throw new xxxException("ConditionA failed") if (ConditionB==false) throw new xxxException("ConditionB failed) with this code any developer can get the exact reason of the failed ExecuteCommand! werner


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.