using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Markup; using System.Windows.Threading; namespace Gestor.Application.Views.BI { public class AgendaBIView : UserControl, IComponentConnector { internal ContentControl NotasControl; internal ContentControl TarefaControl; internal ContentControl BiControl; private bool _contentLoaded; public AgendaBIView() { this.InitializeComponent(); System.Windows.Threading.Dispatcher dispatcher = base.Dispatcher; if (dispatcher == null) { return; } dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(this.ContentLoad)); } private void ContentLoad() { NotasView notasView = new NotasView(); this.NotasControl.Content = notasView; this.NotasControl.DataContext = notasView.DataContext; TarefaView tarefaView = new TarefaView(); this.TarefaControl.Content = tarefaView; this.TarefaControl.DataContext = tarefaView.DataContext; } [DebuggerNonUserCode] [GeneratedCode("PresentationBuildTasks", "4.0.0.0")] public void InitializeComponent() { if (this._contentLoaded) { return; } this._contentLoaded = true; System.Windows.Application.LoadComponent(this, new Uri("/Gestor.Application;component/views/bi/agendabiview.xaml", UriKind.Relative)); } [DebuggerNonUserCode] [EditorBrowsable(EditorBrowsableState.Never)] [GeneratedCode("PresentationBuildTasks", "4.0.0.0")] void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: { this.NotasControl = (ContentControl)target; return; } case 2: { this.TarefaControl = (ContentControl)target; return; } case 3: { this.BiControl = (ContentControl)target; return; } } this._contentLoaded = true; } } }