Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Broken Rules Dialog
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Broken Rules Dialog
Divers
Thread ID:
00931351
Message ID:
00931351
Vues:
54
Hi MM users,

i am having trouble having the broken rules dialog to open instead of using the .net error provider.

this is the code, i have tried three different methods and none cause the Broken Rule form to display.

I have subclassed kevin's form already that is why you are seeing the a4uBrokenRulesForm
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using OakLeaf.MM.Main.Business;
using Apps4u.WinApp.Forms.Business;

namespace A4U.Internal
{
	/// <summary>
	/// Summary description for Company.
	/// </summary>
	public class Company : Apps4u.WinApp.Forms.Maintenance.a4uCompanyMaintenance
	{
		public Company()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.Size = new System.Drawing.Size(300,300);
			this.Text = "Company";
		}
		#endregion
//-->1
		protected override void DisplayBrokenRuleDialog(mmBusinessRuleBase bizRule)
		{
			base.DisplayBrokenRuleDialog (bizRule);
			a4uBrokenRulesForm form = new a4uBrokenRulesForm((mmBusinessRule)bizRule);
			form.Show();
		}
//-->2
		protected override void DisplayBrokenRules(mmBusinessRule bizRule)
		{
			base.DisplayBrokenRules (bizRule);
			a4uBrokenRulesForm form = new a4uBrokenRulesForm((mmBusinessRule)bizRule);
			form.Show();

		}
//-->3
		protected virtual void DisplayBrokenRuleDialog (mmBusinessRule bizRule)
		{
			a4uBrokenRulesForm form = new a4uBrokenRulesForm(bizRule);
			form.Show();
		}



	}
}
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform