public RolePanelMediator( RolePanel viewComponent ) : base(NAME, viewComponent) { RolePanel.AddRole += onAddRole; RolePanel.RemoveRole += onRemoveRole; RoleProxy = (RoleProxy) Facade.RetrieveProxy( RoleProxy.NAME ); ClearForm(); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/PureMVC_SilverlightEmployeeAdminDemo;component/EmployeeAdmin/EmployeeAdminApplic" + "ation.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.UserList = ((PureMVC.CSharp.Demos.Silverlight.EmployeeAdmin.View.Components.UserList)(this.FindName("UserList"))); this.UserForm = ((PureMVC.CSharp.Demos.Silverlight.EmployeeAdmin.View.Components.UserForm)(this.FindName("UserForm"))); this.RolePanel = ((PureMVC.CSharp.Demos.Silverlight.EmployeeAdmin.View.Components.RolePanel)(this.FindName("RolePanel"))); }