Displaying Busines Rules


Author
Message
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
In the BusinessRulesChecked event of a Form , I want to call a 'Common' routine which will loop through all Errors on all Business objects and display them in a Message Box. I have the code (from another Thread) whcih loops through All Broken Rule of all business Objects, but dont know how to pass the object to my common routine. (Sometmes when the Broken Rules display, they may be in different tabs on the form and I need to see them all at the same time, rather than searching through each of the Tabs to locate them).

private void MyForm_BusinessRulesChecked(MicroFour.StrataFrame.Business.BusinessRulesCheckedEventArgs e)
{
ShowBusinessRules(????????????XXXXX);
}


Then in my ShowBusinessRules code, I want to loop through the BrokenRules of the BusinessObjects

public static void ShowBusinessRules(?????????YYYY)
{
string myBrokenRules 

//Loop through BrokenRules in each Business Object and add a line to myBrokenRules..... this bit I am ok with
MessageBox.Show(myBrokenRules);
}


Its the ??????????XXXXXX and  ??????YYYYYYYYY I am unsure about


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search