StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Displaying Busines Rules
Displaying Busines Rules
Post Reply
Like
2
Displaying Busines Rules
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Ger Cannoll
Ger Cannoll
posted 13 Years Ago
ANSWER
Topic Details
Share Topic
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
Reply
Like
2
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Displaying Busines Rules
Ger Cannoll
-
13 Years Ago
Just pass along the AllBrokenRules dictionary provided by the event...
Greg McGuffey
-
13 Years Ago
Hi Greg. Thanks for reply. I have inserted your code, but compiler is...
Ger Cannoll
-
13 Years Ago
Got this working [quote]public static void...
Ger Cannoll
-
13 Years Ago
Well a couple of things are likely going on... First, if you...
Greg McGuffey
-
13 Years Ago
Post Reply
Like
2
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search