From 674ca83ba9243a9e95a7568c797668dab6aee26a Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:35:25 -0300 Subject: feat: upload files --- Gestor.Application/Views/BI/AgendaBIView.cs | 81 +++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Gestor.Application/Views/BI/AgendaBIView.cs (limited to 'Gestor.Application/Views/BI/AgendaBIView.cs') 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 -- cgit v1.2.3