Пример #1
0
        public MonitoringUserControl()
        {
            InitializeComponent();
            tabControl1.TabPages[0].Text = "График";
            tabControl1.TabPages[1].Text = "Индикаторы";
            uc         = wpf.UserControl1.Instance;
            management = new ManagerGraph(bufferDataGraph, OxyPlotGraphView.Model);
            management.DrawOxyPlotGraph(1);

            comboBoxViewPoints.SelectedIndex = 0;
            MonitoringOfIndicators();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnModificar = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\WPFCrearContrato.xaml"
                this.btnModificar.Click += new System.Windows.RoutedEventHandler(this.btnModificar_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.btnLimpiar = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\WPFCrearContrato.xaml"
                this.btnLimpiar.Click += new System.Windows.RoutedEventHandler(this.btnLimpiar_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\WPFCrearContrato.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.rbSi = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.rbNo = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.btnTerminar = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\WPFCrearContrato.xaml"
                this.btnTerminar.Click += new System.Windows.RoutedEventHandler(this.btnTerminar_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.btnCrear = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\WPFCrearContrato.xaml"
                this.btnCrear.Click += new System.Windows.RoutedEventHandler(this.btnCrear_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.lblNumero = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 13:
                this.btnCliente = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\WPFCrearContrato.xaml"
                this.btnCliente.Click += new System.Windows.RoutedEventHandler(this.btnCliente_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.lblNombreCliente = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.label_Copy1 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.txtNumero = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.btnBuscarContrato = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\WPFCrearContrato.xaml"
                this.btnBuscarContrato.Click += new System.Windows.RoutedEventHandler(this.btnBuscarContrato_Click_2);

            #line default
            #line hidden
                return;

            case 18:
                this.btnListadoNum = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\WPFCrearContrato.xaml"
                this.btnListadoNum.Click += new System.Windows.RoutedEventHandler(this.btnListadoNum_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.label_Copy2 = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.label_Copy4 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.txtBuscarCliente = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.btnListadoCliente = ((System.Windows.Controls.Button)(target));

            #line 65 "..\..\WPFCrearContrato.xaml"
                this.btnListadoCliente.Click += new System.Windows.RoutedEventHandler(this.btnListadoCliente_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 24:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.cboTipo = ((System.Windows.Controls.ComboBox)(target));

            #line 71 "..\..\WPFCrearContrato.xaml"
                this.cboTipo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboTipo_SelectionChanged);

            #line default
            #line hidden
                return;

            case 26:
                this.label5_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.txtNumeroAsistentes = ((System.Windows.Controls.TextBox)(target));

            #line 73 "..\..\WPFCrearContrato.xaml"
                this.txtNumeroAsistentes.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtNumeroAsistentes_TextChanged_1);

            #line default
            #line hidden
                return;

            case 28:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.txtObservaciones = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.label5_Copy2 = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.txtPersonalAdicional = ((System.Windows.Controls.TextBox)(target));

            #line 77 "..\..\WPFCrearContrato.xaml"
                this.txtPersonalAdicional.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtPersonalAdicional_TextChanged_1);

            #line default
            #line hidden
                return;

            case 32:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.label_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.label_Copy3 = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.label_Copy5 = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.label9_Copy1 = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.label_Copy6 = ((System.Windows.Controls.Label)(target));
                return;

            case 38:
                this.lblAsistentes = ((System.Windows.Controls.Label)(target));
                return;

            case 39:
                this.lblPersonalAdicional = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.lblTotal = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.lblUf = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.label_Copy8 = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.dpFechaInicio1 = ((WpfControlLibrary1.UserControl1)(target));
                return;

            case 45:
                this.cbModalidad = ((System.Windows.Controls.ComboBox)(target));

            #line 95 "..\..\WPFCrearContrato.xaml"
                this.cbModalidad.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbModalidad_LostFocus);

            #line default
            #line hidden
                return;

            case 46:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 47:
                this.lblValorBase = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.dpFechaTermino = ((WpfControlLibrary1.UserControl1)(target));
                return;

            case 51:
                this.label3_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.btnCalculo = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\WPFCrearContrato.xaml"
                this.btnCalculo.Click += new System.Windows.RoutedEventHandler(this.btnCalculo_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }