summaryrefslogtreecommitdiff
path: root/Gestor.Application/Views/BI/AgendaBIView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Gestor.Application/Views/BI/AgendaBIView.cs')
-rw-r--r--Gestor.Application/Views/BI/AgendaBIView.cs81
1 files changed, 81 insertions, 0 deletions
diff --git a/Gestor.Application/Views/BI/AgendaBIView.cs b/Gestor.Application/Views/BI/AgendaBIView.cs
new file mode 100644
index 0000000..33865eb
--- /dev/null
+++ b/Gestor.Application/Views/BI/AgendaBIView.cs
@@ -0,0 +1,81 @@
+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;
+ }
+ }
+} \ No newline at end of file