示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Lable1 = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 2:
                this.TxtInput = ((System.Windows.Controls.TextBox)(target));

            #line 9 "..\..\..\Modal\InputMessage.xaml"
                this.TxtInput.KeyDown += new System.Windows.Input.KeyEventHandler(this.TxtInput_KeyDown);

            #line default
            #line hidden
                return;

            case 3:

            #line 13 "..\..\..\Modal\InputMessage.xaml"
                ((Telerik.Windows.Controls.RadButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.imgRadnik = ((System.Windows.Controls.Image)(target));
                return;

            case 2:
                this.lblKorisnickoIme = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 3:
                this.lblLozinka = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 4:
                this.passboxLozinka = ((Telerik.Windows.Controls.RadPasswordBox)(target));
                return;

            case 5:
                this.btnPrijaviSe = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.txtKorisnickoIme = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.login = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:

            #line 33 "..\..\MainWindow.xaml"
                ((Telerik.Windows.Controls.RadButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Submit_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.password = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 4:
                this.label = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 5:
                this.error = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grdTop = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.grdBottom = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.radTabControl = ((Telerik.Windows.Controls.RadTabControl)(target));
                return;

            case 4:
                this.lblFac = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 5:
                this.txtDescripcion = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.dtFecha = ((Telerik.Windows.Controls.RadDatePicker)(target));
                return;

            case 7:
                this.rgv = ((Telerik.Windows.Controls.RadGridView)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\WpfTSCCBC.xaml"
                ((Presentation.WpfTSCCBC)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 8 "..\..\..\WpfTSCCBC.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\..\WpfTSCCBC.xaml"
                this.btnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.CboPos = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;

            case 5:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 6:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 7:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#6
0
 public ModList()
 {
     InitializeComponent();
     Mod.AllModsLoaded += Mod_AllModsLoaded;
     cboGroupBy.Items.Clear();
     cboSortBy.Items.Clear();
     foreach (PropertyInfo p in typeof(Mod).GetProperties().Where(x => x.PropertyType == typeof(string)).OrderBy(x => x.Name))
     {
         Telerik.Windows.Controls.Label label = new Telerik.Windows.Controls.Label();
         label.Content = p.Name;
         label.Tag     = p;
         Telerik.Windows.Controls.Label label2 = new Telerik.Windows.Controls.Label();
         label2.Content = p.Name;
         label2.Tag     = p;
         cboSortBy.Items.Add(label);
         cboGroupBy.Items.Add(label2);
     }
 }
示例#7
0
        private object SetHeader(HTabItem tabItem, Tasks tasks)
        {
            StackPanel s          = new StackPanel();
            Label      LableTitle = new Label();

            LableTitle.Content = tasks.Title;
            Label LableDate = new Label();

            Size = LableTitle.FontSize;
            LableDate.FontSize = Size - 2;

            LableDate.Content    = tasks.Date;
            LableDate.Foreground = Brushes.DarkGray;
            s.Children.Add(LableTitle);
            s.Children.Add(LableDate);
            tabItem.LableDate  = LableDate;
            tabItem.LableTitle = LableTitle;
            return(s);
        }
示例#8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\WpfDanhSach.xaml"
                ((Presentation.WpfDanhSach)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 11 "..\..\..\WpfDanhSach.xaml"
                this.btnThoat.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

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

            #line 12 "..\..\..\WpfDanhSach.xaml"
                this.btnChapNhan.Click += new System.Windows.RoutedEventHandler(this.btnChapNhan_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 5:
                this.lblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 6:
                this.lblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblXa = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 8:
                this.dtpStartDate = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 9:
                this.dtpEndDate = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 10:
                this.cboPos = ((System.Windows.Controls.ComboBox)(target));

            #line 19 "..\..\..\WpfDanhSach.xaml"
                this.cboPos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboPos_SelectionChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.cboXa = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 12:
                this.opt01 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.opt19 = ((System.Windows.Controls.RadioButton)(target));
                return;

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

            case 15:
                this.lblEndDate = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\WpfTSCCTLY.xaml"
                ((Presentation.WpfTSCCTLY)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 8 "..\..\..\WpfTSCCTLY.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\..\WpfTSCCTLY.xaml"
                this.btnSua.Click += new System.Windows.RoutedEventHandler(this.btnSua_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.dgvData = ((System.Windows.Controls.DataGrid)(target));

            #line 55 "..\..\..\WpfTSCCTLY.xaml"
                this.dgvData.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgvData_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.lblPhong = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.CboPhong = ((System.Windows.Controls.ComboBox)(target));

            #line 165 "..\..\..\WpfTSCCTLY.xaml"
                this.CboPhong.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPhong_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.CboPos = ((System.Windows.Controls.ComboBox)(target));

            #line 167 "..\..\..\WpfTSCCTLY.xaml"
                this.CboPos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPos_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 9:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 10:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 171 "..\..\..\WpfTSCCTLY.xaml"
                this.ShowGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShowGrid_OnMouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.bsyInd = ((Telerik.Windows.Controls.RadBusyIndicator)(target));
     return;
     case 2:
     this.tabcontrol1 = ((Telerik.Windows.Controls.RadTabControl)(target));
     return;
     case 3:
     this.tabClause = ((Telerik.Windows.Controls.RadTabItem)(target));
     return;
     case 4:
     this.rdTopPanel = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 5:
     this.tbObjectButtons = ((Telerik.Windows.Controls.RadToolBar)(target));
     return;
     case 6:
     this.NewVersion = ((Telerik.Windows.Controls.RadDropDownButton)(target));
     return;
     case 7:
     this.NewVersionContent = ((Telerik.Windows.Controls.RadContextMenu)(target));
     
     #line 66 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.NewVersionContent.ItemClick += new Telerik.Windows.RadRoutedEventHandler(this.NewVersionContent_ItemClick);
     
     #line default
     #line hidden
     return;
     case 8:
     this.rmiTemplate = ((Telerik.Windows.Controls.RadMenuItem)(target));
     return;
     case 9:
     this.rmiUnAttached = ((Telerik.Windows.Controls.RadMenuItem)(target));
     return;
     case 10:
     this.rmiNewDocument = ((Telerik.Windows.Controls.RadMenuItem)(target));
     return;
     case 11:
     this.Compare = ((Telerik.Windows.Controls.RadDropDownButton)(target));
     return;
     case 12:
     this.CompareContent = ((Telerik.Windows.Controls.RadContextMenu)(target));
     
     #line 76 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.CompareContent.ItemClick += new Telerik.Windows.RadRoutedEventHandler(this.CompareContent_ItemClick);
     
     #line default
     #line hidden
     return;
     case 13:
     this.Export = ((Telerik.Windows.Controls.RadDropDownButton)(target));
     return;
     case 14:
     this.ExportContent = ((Telerik.Windows.Controls.RadContextMenu)(target));
     
     #line 83 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.ExportContent.ItemClick += new Telerik.Windows.RadRoutedEventHandler(this.ExportContent_ItemClick);
     
     #line default
     #line hidden
     return;
     case 15:
     this.rmiWord = ((Telerik.Windows.Controls.RadMenuItem)(target));
     return;
     case 16:
     this.rmiPDF = ((Telerik.Windows.Controls.RadMenuItem)(target));
     return;
     case 17:
     this.imgAttached = ((System.Windows.Controls.Image)(target));
     return;
     case 18:
     this.Template = ((System.Windows.Controls.Grid)(target));
     return;
     case 19:
     this.lbType = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.tbTemplateName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.btnTemplatePlaybook = ((System.Windows.Controls.Button)(target));
     
     #line 107 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.btnTemplatePlaybook.Click += new System.Windows.RoutedEventHandler(this.btnTemplatePlaybook_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.lbMatter = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.tbMatterName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 24:
     this.lbVersion = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.tbVersionName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 26:
     this.tbVersionNumber = ((System.Windows.Controls.TextBox)(target));
     return;
     case 27:
     this.lbApprovals = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.btnApprovals = ((System.Windows.Controls.Button)(target));
     
     #line 118 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.btnApprovals.Click += new System.Windows.RoutedEventHandler(this.btnApprovals_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.Questions = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 30:
     this.button1 = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 125 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.btnReset = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 126 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.btnReset.Click += new System.Windows.RoutedEventHandler(this.btnReset_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.tabData = ((Telerik.Windows.Controls.RadTabItem)(target));
     return;
     case 33:
     this.buttonsrow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 34:
     this.Document = ((System.Windows.Controls.Grid)(target));
     return;
     case 35:
     this.lbDocument = ((Telerik.Windows.Controls.Label)(target));
     return;
     case 36:
     this.tbDocumentName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 37:
     this.Save = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 160 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.Save.Click += new System.Windows.RoutedEventHandler(this.Save_Click);
     
     #line default
     #line hidden
     return;
     case 38:
     this.FieldContent = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 39:
     this.Fields = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 40:
     this.radGridView1 = ((Telerik.Windows.Controls.RadGridView)(target));
     return;
     case 41:
     this.btnSave = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 178 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);
     
     #line default
     #line hidden
     return;
     case 42:
     this.btnCancel = ((Telerik.Windows.Controls.RadButton)(target));
     
     #line 179 "..\..\..\ContractEdit\SForceEditSideBar2.xaml"
     this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grdTop = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.grdBottom = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.radTabControl = ((Telerik.Windows.Controls.RadTabControl)(target));
                return;

            case 4:
                this.lblFolio = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 5:
                this.txtFolio = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target));
                return;

            case 6:
                this.lblFac = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 7:
                this.txtDescripcion = ((System.Windows.Controls.TextBox)(target));

            #line 131 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.txtDescripcion.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtDescripcion_KeyDown);

            #line default
            #line hidden
                return;

            case 8:
                this.dtFecha = ((Telerik.Windows.Controls.RadDatePicker)(target));
                return;

            case 9:
                this.cboMarca = ((Telerik.Windows.Controls.RadDateTimePicker)(target));

            #line 148 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.cboMarca.KeyDown += new System.Windows.Input.KeyEventHandler(this.cboMarca_KeyDown);

            #line default
            #line hidden
                return;

            case 10:
                this.cboImpuesto = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 155 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.cboImpuesto.KeyDown += new System.Windows.Input.KeyEventHandler(this.cboImpuesto_KeyDown);

            #line default
            #line hidden
                return;

            case 11:
                this.cboUnidad = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 162 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.cboUnidad.KeyDown += new System.Windows.Input.KeyEventHandler(this.cboUnidad_KeyDown);

            #line default
            #line hidden
                return;

            case 12:
                this.cboEstatus = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;

            case 13:
                this.rgv = ((Telerik.Windows.Controls.RadGridView)(target));

            #line 240 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.rgv.AddingNewDataItem += new System.EventHandler <Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs>(this.rgv_AddingNewDataItem);

            #line default
            #line hidden

            #line 242 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.rgv.RowEditEnded += new System.EventHandler <Telerik.Windows.Controls.GridViewRowEditEndedEventArgs>(this.rgv_RowEditEnded);

            #line default
            #line hidden

            #line 242 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.rgv.BeginningEdit += new System.EventHandler <Telerik.Windows.Controls.GridViewBeginningEditRoutedEventArgs>(this.rgv_BeginningEdit);

            #line default
            #line hidden

            #line 244 "..\..\..\..\..\..\..\ERP\Modules\Purchases\Prices\Views\NewView.xaml"
                this.rgv.Deleting += new System.EventHandler <Telerik.Windows.Controls.GridViewDeletingEventArgs>(this.rgv_Deleting);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        public void AddBreadcrumb(){

            if (radGridView1.SelectedItem != null)
            {
                //if its not shown show it
                if (bread1.Visibility == System.Windows.Visibility.Collapsed)
                {
                    bread1.Visibility = System.Windows.Visibility.Visible;
                    BreadGridRow.Height = new GridLength(28);
                    bread1.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Render, EmptyDelegate);
                    ShowListView();
                } 

                DataRow r = ((DataRowView)radGridView1.SelectedItem).Row;
                if (r.Table.Columns.Contains(_sObjectDef.NameField))
                {

                    Breadcrumb b = new Breadcrumb();
                    b._objectname = _sObjectDef.Name;
                    b._r = r;

                    Telerik.Windows.Controls.Label l;
                    if (bread1.Children.Count > 0)
                    {
                        l = new Telerik.Windows.Controls.Label();
                        l.Content = ">";
                        bread1.Children.Add(l);
                    }

                    l = new Telerik.Windows.Controls.Label();
                    l.Content = _sObjectDef.Label + ":" + r[_sObjectDef.NameField];
                    l.MouseEnter += new MouseEventHandler(breadcrumb_l_MouseEnter);
                    l.MouseLeave += new MouseEventHandler(breadcrumb_l_MouseLeave);
                    l.MouseDown += new MouseButtonEventHandler(breadcrumb_l_MouseDown);
                    l.Tag = b;
                    bread1.Children.Add(l);
                }
            }
        }
示例#13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\WpfTSCC01.xaml"
                ((Presentation.WpfTSCC01)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 7 "..\..\..\WpfTSCC01.xaml"
                this.btnExcel.Click += new System.Windows.RoutedEventHandler(this.btnExcel_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\..\WpfTSCC01.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

            case 4:
                this.dgvData = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 5:
                this.lblPhong = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.CboPhong = ((System.Windows.Controls.ComboBox)(target));

            #line 164 "..\..\..\WpfTSCC01.xaml"
                this.CboPhong.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPhong_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.CboPos = ((System.Windows.Controls.ComboBox)(target));

            #line 165 "..\..\..\WpfTSCC01.xaml"
                this.CboPos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPos_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 9:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 10:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 169 "..\..\..\WpfTSCC01.xaml"
                this.ShowGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShowGrid_OnMouseDown);

            #line default
            #line hidden
                return;

            case 12:
                this.TongHop = ((System.Windows.Controls.Label)(target));

            #line 194 "..\..\..\WpfTSCC01.xaml"
                this.TongHop.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TongHop_OnMouseDown);

            #line default
            #line hidden
                return;

            case 13:
                this.Excel = ((System.Windows.Controls.Label)(target));

            #line 219 "..\..\..\WpfTSCC01.xaml"
                this.Excel.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Excel_OnMouseDown);

            #line default
            #line hidden
                return;

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

            #line 244 "..\..\..\WpfTSCC01.xaml"
                this.ShowAdd.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShowAdd_OnMouseDown);

            #line default
            #line hidden
                return;

            case 15:
                this.grpChon = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 16:
                this.Ration1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 17:
                this.Ration2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.Ration3 = ((System.Windows.Controls.RadioButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\WpfKhaoSat.xaml"
                ((Presentation.WpfKhaoSat)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 6 "..\..\..\WpfKhaoSat.xaml"
                this.BtnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

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

            #line 7 "..\..\..\WpfKhaoSat.xaml"
                this.BtnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.CboPos = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 6:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 7:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 9:
                this.Ration01 = ((System.Windows.Controls.RadioButton)(target));

            #line 18 "..\..\..\WpfKhaoSat.xaml"
                this.Ration01.Checked += new System.Windows.RoutedEventHandler(this.Ration01_Checked);

            #line default
            #line hidden
                return;

            case 10:
                this.Ration02 = ((System.Windows.Controls.RadioButton)(target));

            #line 19 "..\..\..\WpfKhaoSat.xaml"
                this.Ration02.Checked += new System.Windows.RoutedEventHandler(this.Ration02_Checked);

            #line default
            #line hidden
                return;

            case 11:
                this.Ration03 = ((System.Windows.Controls.RadioButton)(target));

            #line 20 "..\..\..\WpfKhaoSat.xaml"
                this.Ration03.Checked += new System.Windows.RoutedEventHandler(this.Ration03_Checked);

            #line default
            #line hidden
                return;

            case 12:
                this.Ration04 = ((System.Windows.Controls.RadioButton)(target));

            #line 21 "..\..\..\WpfKhaoSat.xaml"
                this.Ration04.Checked += new System.Windows.RoutedEventHandler(this.Ration04_Checked);

            #line default
            #line hidden
                return;

            case 13:
                this.Ration05 = ((System.Windows.Controls.RadioButton)(target));

            #line 22 "..\..\..\WpfKhaoSat.xaml"
                this.Ration05.Checked += new System.Windows.RoutedEventHandler(this.Ration05_Checked);

            #line default
            #line hidden
                return;

            case 14:
                this.Ration06 = ((System.Windows.Controls.RadioButton)(target));

            #line 23 "..\..\..\WpfKhaoSat.xaml"
                this.Ration06.Checked += new System.Windows.RoutedEventHandler(this.Ration06_Checked);

            #line default
            #line hidden
                return;

            case 15:
                this.Ration07 = ((System.Windows.Controls.RadioButton)(target));

            #line 24 "..\..\..\WpfKhaoSat.xaml"
                this.Ration07.Checked += new System.Windows.RoutedEventHandler(this.Ration07_Checked);

            #line default
            #line hidden
                return;

            case 16:
                this.Ration08 = ((System.Windows.Controls.RadioButton)(target));

            #line 25 "..\..\..\WpfKhaoSat.xaml"
                this.Ration08.Checked += new System.Windows.RoutedEventHandler(this.Ration08_Checked);

            #line default
            #line hidden
                return;

            case 17:
                this.Ration09 = ((System.Windows.Controls.RadioButton)(target));

            #line 26 "..\..\..\WpfKhaoSat.xaml"
                this.Ration09.Checked += new System.Windows.RoutedEventHandler(this.Ration09_Checked);

            #line default
            #line hidden
                return;

            case 18:
                this.Ration10 = ((System.Windows.Controls.RadioButton)(target));

            #line 27 "..\..\..\WpfKhaoSat.xaml"
                this.Ration10.Checked += new System.Windows.RoutedEventHandler(this.Ration10_Checked);

            #line default
            #line hidden
                return;

            case 19:
                this.Ration11 = ((System.Windows.Controls.RadioButton)(target));

            #line 28 "..\..\..\WpfKhaoSat.xaml"
                this.Ration11.Checked += new System.Windows.RoutedEventHandler(this.Ration11_Checked);

            #line default
            #line hidden
                return;

            case 20:
                this.Ration12 = ((System.Windows.Controls.RadioButton)(target));

            #line 29 "..\..\..\WpfKhaoSat.xaml"
                this.Ration12.Checked += new System.Windows.RoutedEventHandler(this.Ration12_Checked);

            #line default
            #line hidden
                return;

            case 21:
                this.Ration13 = ((System.Windows.Controls.RadioButton)(target));

            #line 30 "..\..\..\WpfKhaoSat.xaml"
                this.Ration13.Checked += new System.Windows.RoutedEventHandler(this.Ration13_Checked);

            #line default
            #line hidden
                return;

            case 22:
                this.Ration14 = ((System.Windows.Controls.RadioButton)(target));

            #line 31 "..\..\..\WpfKhaoSat.xaml"
                this.Ration14.Checked += new System.Windows.RoutedEventHandler(this.Ration14_Checked);

            #line default
            #line hidden
                return;

            case 23:
                this.Opt1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 24:
                this.Opt2 = ((System.Windows.Controls.RadioButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\Wpfkt740.xaml"
                ((Presentation.WpfKt740)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 6 "..\..\..\Wpfkt740.xaml"
                this.BtnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

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

            #line 7 "..\..\..\Wpfkt740.xaml"
                this.BtnOk.Click += new System.Windows.RoutedEventHandler(this.btnOk_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.CboPos = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 6:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 7:
                this.DtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 9:
                this.Ration01 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 10:
                this.Ration02 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 11:
                this.Ration03 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 12:
                this.Ration04 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.Ration05 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.Ration06 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 15:
                this.Ration07 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 16:
                this.Ration08 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 17:
                this.Ration9 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.Ration10 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.Ration11 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 20:
                this.Ration12 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 21:
                this.Ration13 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 22:
                this.Ration14 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 23:
                this.Ration15 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 24:
                this.Ration16 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 25:
                this.Ration17 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 26:
                this.Ration18 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 27:
                this.Ration19 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 28:
                this.Ration20 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 29:
                this.Ration21 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 30:
                this.Ration22 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 31:
                this.Ration23 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 32:
                this.Ration24 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 33:
                this.Ration25 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 34:
                this.Ration26 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 35:
                this.Ration27 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 36:
                this.Ration28 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 37:
                this.Opt1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 38:
                this.Opt2 = ((System.Windows.Controls.RadioButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\WpfTSCC02.xaml"
                ((Presentation.WpfTscc02)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 7 "..\..\..\WpfTSCC02.xaml"
                this.btnExcel.Click += new System.Windows.RoutedEventHandler(this.btnExcel_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\..\WpfTSCC02.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

            case 4:
                this.btnSua = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.btnXoa = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.dgvData = ((System.Windows.Controls.DataGrid)(target));

            #line 97 "..\..\..\WpfTSCC02.xaml"
                this.dgvData.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgvData_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.lblLoai_Ts = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.CboPhongTo = ((System.Windows.Controls.ComboBox)(target));

            #line 200 "..\..\..\WpfTSCC02.xaml"
                this.CboPhongTo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPhongTo_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.lblCbo = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.CboCanBo = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 12:
                this.CboLoaiTSCT = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 13:
                this.lblNoiDung = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.TxtNd = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.CboPos = ((System.Windows.Controls.ComboBox)(target));

            #line 207 "..\..\..\WpfTSCC02.xaml"
                this.CboPos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPos_SelectionChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 17:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 18:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 211 "..\..\..\WpfTSCC02.xaml"
                this.ShowGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShowGrid_OnMouseDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\WpfKhaoSatVay.xaml"
                ((Presentation.WpfKhaoSatVay)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 8 "..\..\..\WpfKhaoSatVay.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\..\WpfKhaoSatVay.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnPrint = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\..\WpfKhaoSatVay.xaml"
                this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.dgvData = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 6:
                this.lblLoai_Ts = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblDot = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.CboXa = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;

            case 9:
                this.CboDot = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;

            case 10:
                this.CboPos = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;

            case 11:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 12:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 13:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 334 "..\..\..\WpfKhaoSatVay.xaml"
                this.ShowGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShowGrid_OnMouseDown);

            #line default
            #line hidden
                return;

            case 15:
                this.groupBox = ((Telerik.Windows.Controls.GroupBox)(target));
                return;

            case 16:
                this.opt1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 17:
                this.opt2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.opt3 = ((System.Windows.Controls.RadioButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\Window1.xaml"
                ((ChatHubWPF.Window1)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.RadGridView = ((Telerik.Windows.Controls.RadGridView)(target));

            #line 20 "..\..\Window1.xaml"
                this.RadGridView.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.RadGridView_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 4:
                this.MinimizeExitGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.ButtonClose = ((System.Windows.Controls.Image)(target));

            #line 23 "..\..\Window1.xaml"
                this.ButtonClose.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 6:
                this.ButtonMinimize = ((System.Windows.Controls.Image)(target));

            #line 26 "..\..\Window1.xaml"
                this.ButtonMinimize.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonMinimize_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.UserNameLabel = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 8:
                this.ChatMessages = ((System.Windows.Controls.ListBox)(target));

            #line 29 "..\..\Window1.xaml"
                this.ChatMessages.KeyDown += new System.Windows.Input.KeyEventHandler(this.ChatMessages_KeyDown);

            #line default
            #line hidden
                return;

            case 9:
                this.MessageTextbox = ((System.Windows.Controls.TextBox)(target));

            #line 32 "..\..\Window1.xaml"
                this.MessageTextbox.KeyDown += new System.Windows.Input.KeyEventHandler(this.MessageTextBoxKeyDown);

            #line default
            #line hidden

            #line 32 "..\..\Window1.xaml"
                this.MessageTextbox.MouseEnter += new System.Windows.Input.MouseEventHandler(this.MessageTextbox_MouseEnter);

            #line default
            #line hidden

            #line 32 "..\..\Window1.xaml"
                this.MessageTextbox.MouseLeave += new System.Windows.Input.MouseEventHandler(this.MessageTextbox_MouseLeave);

            #line default
            #line hidden
                return;

            case 10:
                this.SendMessageButton = ((Telerik.Windows.Controls.RadButton)(target));

            #line 33 "..\..\Window1.xaml"
                this.SendMessageButton.Click += new System.Windows.RoutedEventHandler(this.SendMessageButtonClick);

            #line default
            #line hidden
                return;

            case 11:
                this.StartVideoCallButton = ((Telerik.Windows.Controls.RadButton)(target));

            #line 34 "..\..\Window1.xaml"
                this.StartVideoCallButton.Click += new System.Windows.RoutedEventHandler(this.StartVideoCallButtonClick);

            #line default
            #line hidden
                return;

            case 12:
                this.EndVideoCallButton = ((Telerik.Windows.Controls.RadButton)(target));

            #line 35 "..\..\Window1.xaml"
                this.EndVideoCallButton.Click += new System.Windows.RoutedEventHandler(this.EndVideoCallButtonClick);

            #line default
            #line hidden
                return;

            case 13:
                this.VideoFrame = ((System.Windows.Controls.Image)(target));
                return;

            case 14:

            #line 37 "..\..\Window1.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.SearchTexBox = ((System.Windows.Controls.TextBox)(target));

            #line 38 "..\..\Window1.xaml"
                this.SearchTexBox.MouseEnter += new System.Windows.Input.MouseEventHandler(this.SearchTextBoxMouseEnter);

            #line default
            #line hidden

            #line 38 "..\..\Window1.xaml"
                this.SearchTexBox.MouseLeave += new System.Windows.Input.MouseEventHandler(this.SearchTextBoxMouseLeave);

            #line default
            #line hidden

            #line 38 "..\..\Window1.xaml"
                this.SearchTexBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SearchTexBoxTextChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.NameUser = ((Telerik.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#19
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.radTabControl = ((Telerik.Windows.Controls.RadTabControl)(target));
                return;

            case 2:
                this.lblFolio = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 3:
                this.txtFolio = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target));
                return;

            case 4:
                this.lblFac = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 5:
                this.txtDescripcion = ((System.Windows.Controls.TextBox)(target));

            #line 71 "..\..\..\..\..\..\..\ERP\Modules\Inventory\PurchasesMichelin\Views\NewView.xaml"
                this.txtDescripcion.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtDescripcion_KeyDown);

            #line default
            #line hidden
                return;

            case 6:
                this.dtFecha = ((Telerik.Windows.Controls.RadDatePicker)(target));
                return;

            case 7:
                this.cboMarca = ((Telerik.Windows.Controls.RadDateTimePicker)(target));

            #line 82 "..\..\..\..\..\..\..\ERP\Modules\Inventory\PurchasesMichelin\Views\NewView.xaml"
                this.cboMarca.KeyDown += new System.Windows.Input.KeyEventHandler(this.cboMarca_KeyDown);

            #line default
            #line hidden
                return;

            case 8:
                this.cboImpuesto = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 87 "..\..\..\..\..\..\..\ERP\Modules\Inventory\PurchasesMichelin\Views\NewView.xaml"
                this.cboImpuesto.KeyDown += new System.Windows.Input.KeyEventHandler(this.cboImpuesto_KeyDown);

            #line default
            #line hidden
                return;

            case 9:
                this.cboUnidad = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 92 "..\..\..\..\..\..\..\ERP\Modules\Inventory\PurchasesMichelin\Views\NewView.xaml"
                this.cboUnidad.KeyDown += new System.Windows.Input.KeyEventHandler(this.cboUnidad_KeyDown);

            #line default
            #line hidden
                return;

            case 10:
                this.cboEstatus = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;

            case 11:
                this.rgv = ((Telerik.Windows.Controls.RadGridView)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#20
0
        public StackPanel LoopItemlist(ObservableCollection <RibbonItemCustom> ItemData, int start, int end)
        {
            StackPanel stackpanel = new StackPanel()
            {
                Orientation = Orientation.Horizontal
            };

            for (int i = start; i < end; i++)
            {
                String     Id            = ItemData[i].Id;
                String     ToolTip       = ItemData[i].ToolTip;
                String     text          = ItemData[i].Text;
                String     ImagePath     = ItemData[i].ImagePath;
                Boolean    ExternalImage = ItemData[i].ExternalImage;
                Boolean    IsVisible     = ItemData[i].IsVisible;
                Boolean    IsInitialized = ItemData[i].IsInitialized;
                String     Image         = ItemData[i].Image;
                String     LargeImage    = ItemData[i].LargeImage;
                int        width         = ItemData[i].Width;
                int        height        = ItemData[i].Height;
                Boolean    IsEnabled     = ItemData[i].IsEnabled;
                String     Size          = ItemData[i].Size;
                ButtonSize size;
                switch (Size)
                {
                case "Small":
                    size = ButtonSize.Small;
                    break;

                case "Large":
                    size = ButtonSize.Large;
                    break;

                default:
                    size = ButtonSize.Medium;
                    break;
                }
                String  Type       = ItemData[i].ItemType;
                Boolean IsAutoSize = ItemData[i].ExternalImage;
                Image   image      = new Image();
                try
                {
                    image.Source = new BitmapImage(new Uri(binDebug + PathImage + ItemData[i].Image));
                }
                catch { }
                Image largeImage = new Image();
                try
                {
                    largeImage.Source = new BitmapImage(new Uri(binDebug + PathImage + ItemData[i].Image));
                }
                catch { }
                switch (ItemData[i].ItemType)
                {
                case "Button":
                    stackpanel.Children.Add(
                        new RadRibbonButton()
                    {
                        CollapseToSmall = CollapseThreshold.WhenGroupIsMedium,
                        SmallImage      = image.Source,
                        LargeImage      = largeImage.Source,
                        Size            = size,
                        Text            = text,
                    }
                        );
                    break;

                case "SplitButton":
                    RadRibbonSplitButton splitButton = new RadRibbonSplitButton
                    {
                        Size              = size,
                        Text              = text,
                        LargeImage        = largeImage.Source,
                        SmallImage        = image.Source,
                        VerticalAlignment = VerticalAlignment.Top,
                    };
                    RadContextMenu contextMenu = new RadContextMenu();
                    RadMenuItem    Item        = new RadMenuItem()
                    {
                        Icon = image.Source, Header = text
                    };
                    contextMenu.Items.Add(Item);
                    splitButton.DropDownContent = contextMenu;
                    stackpanel.Children.Add(splitButton);
                    break;

                case "ToggleButton":
                    stackpanel.Children.Add(new RadRibbonToggleButton()
                    {
                        Content           = text,
                        LargeImage        = largeImage.Source,
                        Size              = size,
                        VerticalAlignment = VerticalAlignment.Top
                    });
                    break;

                case "DropDownButton":
                    StackPanel stack = new StackPanel()
                    {
                        Orientation = Orientation.Vertical
                    };
                    Label Text = new Label()
                    {
                        Content = ItemData[i].Text
                    };
                    ComboBox ComboBox = new ComboBox();
                    stack.Children.Add(Text);
                    stack.Children.Add(ComboBox);
                    stackpanel.Children.Add(stack);
                    break;
                }
            }
            return(stackpanel);
        }
示例#21
0
        public static void ConverToTelerik(ObservableCollection <RibbonItemCustom> ItemsCustom)
        {
            ObservableCollection <object> temp = new ObservableCollection <object>();

            foreach (RibbonItemCustom itemCustom in ItemsCustom)
            {
                RibbonControl control = ComponentManager.Ribbon;


                String     Id            = itemCustom.Id;
                String     ToolTip       = itemCustom.ToolTip;
                String     text          = itemCustom.Text;
                String     ImagePath     = itemCustom.ImagePath;
                Boolean    ExternalImage = itemCustom.ExternalImage;
                Boolean    IsVisible     = itemCustom.IsVisible;
                Boolean    IsInitialized = itemCustom.IsInitialized;
                String     Image         = itemCustom.Image;
                String     LargeImage    = itemCustom.LargeImage;
                int        width         = itemCustom.Width;
                int        height        = itemCustom.Height;
                Boolean    IsEnabled     = itemCustom.IsEnabled;
                String     Size          = itemCustom.Size;
                ButtonSize size;
                switch (Size)
                {
                case "Small":
                    size = ButtonSize.Small;
                    break;

                case "Large":
                    size = ButtonSize.Large;
                    break;

                default:
                    size = ButtonSize.Medium;
                    break;
                }
                String  Type       = itemCustom.ItemType;
                Boolean IsAutoSize = itemCustom.ExternalImage;
                Image   image      = new Image();
                try
                {
                    image.Source = new BitmapImage(new Uri(binDebug + PathImage + itemCustom.Image));
                }
                catch { }
                switch (Type)
                {
                case "Button":
                    temp.Add(new RadRibbonButton());
                    break;

                case "SplitButton":
                    RadRibbonSplitButton splitButton = new RadRibbonSplitButton
                    {
                        Size              = size,
                        Text              = text,
                        LargeImage        = image.Source,
                        SmallImage        = image.Source,
                        Width             = width,
                        Height            = height,
                        VerticalAlignment = VerticalAlignment.Top
                    };
                    RadContextMenu contextMenu = new RadContextMenu();
                    RadMenuItem    Item        = new RadMenuItem()
                    {
                        Icon = image.Source, Header = text
                    };
                    contextMenu.Items.Add(Item);
                    splitButton.DropDownContent = contextMenu;
                    temp.Add(splitButton);
                    break;

                case "ToggleButton":
                    temp.Add(new RadRibbonToggleButton()
                    {
                        Content           = text,
                        LargeImage        = image.Source,
                        Size              = size,
                        Width             = width,
                        Height            = height,
                        VerticalAlignment = VerticalAlignment.Top
                    });
                    break;

                case "DropDownButton":
                    StackPanel stack = new StackPanel()
                    {
                        Orientation = Orientation.Horizontal
                    };
                    Label Text = new Label()
                    {
                        Content = itemCustom.Text
                    };
                    ComboBox ComboBox = new ComboBox();
                    stack.Children.Add(Text);
                    stack.Children.Add(ComboBox);
                    temp.Add(stack);
                    break;
                }
            }
            StackPanel row1 = new StackPanel();

            for (int i = 0; i < temp.Count / 2; i++)
            {
                string Type = temp[i].GetType().Name;
                switch (Type)
                {
                case "Button":
                    row1.Children.Add((RadRibbonButton)temp[i]);
                    break;

                case "SplitButton":
                    row1.Children.Add((RadRibbonSplitButton)temp[i]);
                    break;

                case "ToggleButton":
                    row1.Children.Add((RadRibbonToggleButton)temp[i]);
                    break;

                case "DropDownButton":
                    //row1.Children.Add((RadRibbonButton)temp[i]);
                    break;
                }
            }
            StackPanel row2 = new StackPanel();

            RadControl = temp;
        }
示例#22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\WpfTSCCNhap.xaml"
                ((Presentation.WpfTSCCNhap)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 8 "..\..\..\WpfTSCCNhap.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.Close_OnClick);

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\..\WpfTSCCNhap.xaml"
                this.btnSua.Click += new System.Windows.RoutedEventHandler(this.btnSua_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.dgvData = ((System.Windows.Controls.DataGrid)(target));

            #line 55 "..\..\..\WpfTSCCNhap.xaml"
                this.dgvData.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgvData_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.lblLoai_Ts = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.CboLoaiTS = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 164 "..\..\..\WpfTSCCNhap.xaml"
                this.CboLoaiTS.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboLoaiTS_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.lblLoai_Ts_CT = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.lblPhong = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.CboLoaiTSCT = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;

            case 10:
                this.CboPhong = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 168 "..\..\..\WpfTSCCNhap.xaml"
                this.CboPhong.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPhong_SelectionChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.TxtNd = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.lbCB = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.TxtCB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.CboCanBo = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 172 "..\..\..\WpfTSCCNhap.xaml"
                this.CboCanBo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboCanBo_SelectionChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.CboPos = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 173 "..\..\..\WpfTSCCNhap.xaml"
                this.CboPos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CboPos_SelectionChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.LblPos = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 17:
                this.LblNgay = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 18:
                this.dtpNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 177 "..\..\..\WpfTSCCNhap.xaml"
                this.ShowGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShowGrid_OnMouseDown);

            #line default
            #line hidden
                return;

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

            #line 202 "..\..\..\WpfTSCCNhap.xaml"
                this.ShowCh.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShowCh_OnMouseDown);

            #line default
            #line hidden
                return;

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

            case 22:
                this.grpChon = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 23:
                this.Ration1 = ((System.Windows.Controls.RadioButton)(target));

            #line 235 "..\..\..\WpfTSCCNhap.xaml"
                this.Ration1.Checked += new System.Windows.RoutedEventHandler(this.Ration1_Checked);

            #line default
            #line hidden
                return;

            case 24:
                this.Ration2 = ((System.Windows.Controls.RadioButton)(target));

            #line 236 "..\..\..\WpfTSCCNhap.xaml"
                this.Ration2.Checked += new System.Windows.RoutedEventHandler(this.Ration2_Checked);

            #line default
            #line hidden
                return;

            case 25:
                this.lblPhongPass = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.CboPhongPass = ((Telerik.Windows.Controls.RadComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.GridData = ((Telerik.Windows.Controls.RadGridView)(target));

            #line 17 "..\..\Etudiants.xaml"
                this.GridData.SelectionChanged += new System.EventHandler <Telerik.Windows.Controls.SelectionChangeEventArgs>(this.GridData_SelectionChanged);

            #line default
            #line hidden

            #line 17 "..\..\Etudiants.xaml"
                this.GridData.TouchDown += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.GridData_TouchDown);

            #line default
            #line hidden
                return;

            case 3:
                this.search = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 30 "..\..\Etudiants.xaml"
                this.search.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.search_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 5:
                this.radButton = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\Etudiants.xaml"
                this.radButton.Click += new System.Windows.RoutedEventHandler(this.radButton_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.infosup = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 7:
                this.titre = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 8:
                this.radButton1 = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\Etudiants.xaml"
                this.radButton1.Click += new System.Windows.RoutedEventHandler(this.radButton1_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Controls = ((System.Windows.Controls.ContentControl)(target));
                return;

            case 2:
                this.mainPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.btnClose = ((System.Windows.Controls.Border)(target));

            #line 21 "..\..\..\..\ERP\Designs\CambiarPassword.xaml"
                this.btnClose.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.btnClose_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 4:
                this.grdTop = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.grdBottom = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.btnGuardar = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.radTabControl = ((Telerik.Windows.Controls.RadTabControl)(target));
                return;

            case 8:
                this.lblFac = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 9:
                this.txtDescripcion = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.lblFac2 = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 11:
                this.txt1Descripcion = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.lblFac2r = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 13:
                this.txt1rDescripcion = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LoginWindow = ((DesktopApp.MainWindow)(target));

            #line 10 "..\..\..\Views\MainWindow.xaml"
                this.LoginWindow.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.LoginWindow_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.imgRadnik = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.lblUserName = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 4:
                this.lblPassword = ((Telerik.Windows.Controls.Label)(target));
                return;

            case 5:
                this.passboxPassword = ((Telerik.Windows.Controls.RadPasswordBox)(target));
                return;

            case 6:
                this.txtUserName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 57 "..\..\..\Views\MainWindow.xaml"
                this.btnMinimize.Click += new System.Windows.RoutedEventHandler(this.btnMinimze_Click);

            #line default
            #line hidden

            #line 57 "..\..\..\Views\MainWindow.xaml"
                this.btnMinimize.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnMinimize_MouseEnter);

            #line default
            #line hidden

            #line 57 "..\..\..\Views\MainWindow.xaml"
                this.btnMinimize.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnMinimize_MouseLeave);

            #line default
            #line hidden
                return;

            case 8:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\..\Views\MainWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.CloseBtn_Click);

            #line default
            #line hidden

            #line 68 "..\..\..\Views\MainWindow.xaml"
                this.btnClose.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnMinimize_MouseEnter);

            #line default
            #line hidden

            #line 68 "..\..\..\Views\MainWindow.xaml"
                this.btnClose.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnMinimize_MouseLeave);

            #line default
            #line hidden
                return;

            case 9:
                this.btnLogin = ((Telerik.Windows.Controls.RadButton)(target));

            #line 77 "..\..\..\Views\MainWindow.xaml"
                this.btnLogin.Click += new System.Windows.RoutedEventHandler(this.btnPrijaviSe_Click);

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