public void Initialize() { _container.RegisterType <ITipificacionesView, TipificacionesView>(); _container.RegisterType <ITipificacionesViewModel, TipificacionesViewModel>(); _viewManager.ViewsByRegionName["InteractionWorksheetRegion"].Add( new ViewActivator { ViewType = typeof(ITipificacionesView), ViewName = "InteractionTipificaciones", ActivateView = true } ); _container.RegisterType <ITipificacionesButtonView, TipificacionesButtonView>(); _viewManager.ViewsByRegionName["CaseViewSideButtonRegion"].Add( new ViewActivator { ViewType = typeof(ITipificacionesButtonView), ViewName = "TipificacionesButtonView", ActivateView = true } ); //_commandManager.InsertCommandToChainOfCommandBefore( // "BundleClose", // "IsPossibleToClose", // new List<CommandActivator>() // { // new CommandActivator() // { // CommandType = typeof(MarkDone.MarkDoneCommand), // Name = "CloseMarkDoneTipificado" // } // } // ); _interactionManager.InteractionEvent += interactionManager_InteractionEvent; _viewEventManager.Subscribe(CrossnetEventHandler); }
//private void agentDNs() //{ // IAgent agentID = container.Resolve<IAgent>(); // agentDN = agentID.Place.ConfPlace.DNs.FirstOrDefault().Number; // MessageBox.Show(agentDN); //} public void InitializeViews() { //bool AZFNar = true; //IAgent agent = container.Resolve<IAgent>(); //MessageBox.Show(agent.AgentGroupsForAgent[0].DBID.ToString()); //string agentProfile = agent.AgentGroupsForAgent[0].ObjectDbid.ToString(); //MessageBox.Show(agent.AgentGroupsForAgent[0].ObjectDbid.ToString()); //MessageBox.Show(agent.); //Nar Tab MessageBox.Show("agentProfile >>" + agentProfile); if (agentProfile.Equals("Azf_Nar")) { HuaweiCRMAZFNartab1(); ZedApplicationtab2(); CubeApplicationtab3(); HLRAZFNARtab4(); slidemenuHLRAZFNARApplicatio4(); ApexAzfNartab5(); slidemenuAPEXNARApplicatio3(); } else if (agentProfile.Equals("Azf_Fixed")) { ApexAzfFixedtab1(); slidemenuAPEXAZFFIXEDApplicatio2(); } else if (agentProfile.Equals("Backcell")) { HuaweiCRMBKC(); // huawei slide menu slidemenuXDRviewBKC(); XDRViewBKCtab(); slidemenuHLRBKC(); HLRBKCTab(); slidemenuApexBKC(); APEXBKCTab(); } // Event registration // Subscribe to the post login / post logout events viewEventManager.Subscribe(MyEventHandler); }
public void Create() { Model.Case = (Context as IDictionary <string, object>).TryGetValue("Case") as ICase; _viewEventManager.Subscribe(ActionEventHandler); }