void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((BMC.Presentation.POS.Views.PromoVoid)(target));

            #line 9 "..\..\..\Views\PromoVoid.xaml"
                this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.dgVoidGridView = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

            case 4:

            #line 39 "..\..\..\Views\PromoVoid.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnVoid_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        //Event for DataGrid popup MouseDown
        void popupDataGrid_MouseDown(object sender, MouseButtonEventArgs e)
        {
            IstextChanged = true;

            Microsoft.Windows.Controls.DataGrid dg = sender as Microsoft.Windows.Controls.DataGrid;
            if (dg != null)
            {
                DependencyObject dep = (DependencyObject)e.OriginalSource;

                // iteratively traverse the visual tree and stop when dep is one of ..
                while ((dep != null) &&
                       !(dep is Microsoft.Windows.Controls.DataGridCell) &&
                       !(dep is Microsoft.Windows.Controls.Primitives.DataGridColumnHeader))
                {
                    dep = VisualTreeHelper.GetParent(dep);
                }

                if (dep == null)
                {
                    IstextChanged = false;
                    return;
                }
                if (dep is Microsoft.Windows.Controls.Primitives.DataGridColumnHeader)
                {
                    // do something
                }
                //When user clicks to DataGrid cell, popup have to be closed
                if (dep is Microsoft.Windows.Controls.DataGridCell)
                {
                    this.IsDropDownOpen = false;
                }
            }

            IstextChanged = false;
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cboGroup = ((System.Windows.Controls.ComboBox)(target));

            #line 23 "..\..\..\UserControls\ucCarModel.xaml"
                this.cboGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboGroup_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\..\UserControls\ucCarModel.xaml"
                this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.dtgCarModels = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            #line 46 "..\..\..\UserControls\ucCarModel.xaml"
                this.btnAddCarModel.Click += new System.Windows.RoutedEventHandler(this.btnAddCarModel_Click);

            #line default
            #line hidden
                return;

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

            #line 54 "..\..\..\UserControls\ucCarModel.xaml"
                this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.btnEdit_Click);

            #line default
            #line hidden
                return;

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

            #line 62 "..\..\..\UserControls\ucCarModel.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

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

            #line 23 "..\..\..\UserControls\ucManufacturer.xaml"
                this.txtManufacturer.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtManufacturer_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\..\UserControls\ucManufacturer.xaml"
                this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.dtgManufacturer = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            #line 45 "..\..\..\UserControls\ucManufacturer.xaml"
                this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\..\UserControls\ucManufacturer.xaml"
                this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.btnEdit_Click);

            #line default
            #line hidden
                return;

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

            #line 67 "..\..\..\UserControls\ucManufacturer.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

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

            case 2:
                this.cbSelTank = ((System.Windows.Controls.ComboBox)(target));

            #line 78 "..\..\..\View\Interpolation.xaml"
                this.cbSelTank.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbSelTank_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 97 "..\..\..\View\Interpolation.xaml"
                this.btnImport.Click += new System.Windows.RoutedEventHandler(this.btnImport_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.InterpolationGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btn_Confrim = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\..\View\UcStocks.xaml"
                this.btn_Confrim.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.McDataGrid = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 41 "..\..\..\View\UcStocks.xaml"
                this.McDataGrid.CellEditEnding += new System.EventHandler <Microsoft.Windows.Controls.DataGridCellEditEndingEventArgs>(this.McDataGrid_CellEditEnding_1);

            #line default
            #line hidden

            #line 41 "..\..\..\View\UcStocks.xaml"
                this.McDataGrid.BeginningEdit += new System.EventHandler <Microsoft.Windows.Controls.DataGridBeginningEditEventArgs>(this.McDataGrid_BeginningEdit);

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

            #line 20 "..\..\..\..\UserControls\UCMyCampaigns.xaml"
                this.btnGetReord.Click += new System.Windows.RoutedEventHandler(this.btnGetReord_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.ReleaseHeading = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.ReleaseContent = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.DGMyCampaigns = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public static List <CheckedListItem> GetDistictValues(Microsoft.Windows.Controls.DataGrid grid, string columnName)
        {
            var itemSource   = grid.ItemsSource as DataView;
            var ditictValues = new List <CheckedListItem> {
                new CheckedListItem {
                    IsChecked = false, Name = "(Select All)", IsSelectAll = "(Select All)"
                }
            };

            if (itemSource == null)
            {
                return(null);
            }

            var table          = itemSource.Table;
            var filteredValues = GetFilteredColumnValues(columnName, itemSource);

            foreach (DataRow row in table.Rows)
            {
                var value = Convert.ToString(row[columnName]);
                if (ditictValues.Count(c => c.Name.Equals(value) && c.IsSelectAll != "(Select All)") == 0)
                {
                    //value = AddEscapeSequece(value);
                    ditictValues.Add(new CheckedListItem {
                        Name = value, IsChecked = filteredValues.Contains("'" + value + "'")
                    });
                }
            }
            if (ditictValues.Count(c => c.IsChecked) == ditictValues.Count - 1)
            {
                ditictValues[0].IsChecked = true;
            }
            CurrentDistictValues = ditictValues;
            return(ditictValues);
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.VerEstudianteGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 2:
     
     #line 17 "..\..\VerEstudiantes.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 18 "..\..\VerEstudiantes.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnUpcoming = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\GroupGridView.xaml"
                this.btnUpcoming.Click += new System.Windows.RoutedEventHandler(this.btnUpcoming_Click);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\GroupGridView.xaml"
                this.btnPast.Click += new System.Windows.RoutedEventHandler(this.btnPast_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.dgData = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dgData = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 13 "..\..\Window1.xaml"
                this.dgData.RowEditEnding += new System.EventHandler <Microsoft.Windows.Controls.DataGridRowEditEndingEventArgs>(this.dgData_RowEditEnding);

            #line default
            #line hidden

            #line 14 "..\..\Window1.xaml"
                this.dgData.AddHandler(System.Windows.Input.CommandManager.PreviewExecutedEvent, new System.Windows.Input.ExecutedRoutedEventHandler(this.dgData_PreviewExecuted));

            #line default
            #line hidden
                return;

            case 2:
                this.txtStatus = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #12
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VerClasesGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

            #line 16 "..\..\VerClases.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

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

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

            #line default
            #line hidden
                return;

            case 2:
                this.MyDataGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            #line 38 "..\..\Window1.xaml"
                this.LoadButton.Click += new System.Windows.RoutedEventHandler(this.LoadButton_Click);

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

            #line 7 "..\..\..\ChooseParent.xaml"
                ((Core.ChooseParent)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.gridDocuments = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 14 "..\..\..\ChooseParent.xaml"
                this.gridDocuments.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.gridDocuments_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\..\ChooseParent.xaml"
                this.btnChoose.Click += new System.Windows.RoutedEventHandler(this.btnChoose_Click);

            #line default
            #line hidden
                return;

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

            #line 36 "..\..\..\ChooseParent.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

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

            #line 37 "..\..\..\ChooseParent.xaml"
                this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.btnSearch_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.cldrDate = ((Microsoft.Windows.Controls.Calendar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\EditWindow.xaml"
                ((PluginInterface.EditWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\EditWindow.xaml"
                ((PluginInterface.EditWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.docInfo = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.gridData = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 28 "..\..\EditWindow.xaml"
                this.gridData.RowEditEnding += new System.EventHandler <Microsoft.Windows.Controls.DataGridRowEditEndingEventArgs>(this.gridData_RowEditEnding);

            #line default
            #line hidden
                return;

            case 5:
                this.chkCascade = ((System.Windows.Controls.CheckBox)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 70 "..\..\EditWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        internal SelectedCellsChangedEventArgs(DataGrid owner, VirtualizedCellInfoCollection addedCells, VirtualizedCellInfoCollection removedCells)
        {
            _addedCells = (addedCells != null) ? addedCells : VirtualizedCellInfoCollection.MakeEmptyCollection(owner);
            _removedCells = (removedCells != null) ? removedCells : VirtualizedCellInfoCollection.MakeEmptyCollection(owner);

            Debug.Assert(_addedCells.IsReadOnly, "_addedCells should have ended up as read-only.");
            Debug.Assert(_removedCells.IsReadOnly, "_removedCells should have ended up as read-only.");
        }
Beispiel #17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MeterLife = ((BMC.Presentation.POS.Views.CMeterLife)(target));

            #line 3 "..\..\..\Views\CMeterLife.xaml"
                this.MeterLife.Loaded += new System.Windows.RoutedEventHandler(this.MeterLife_Loaded);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.lstView = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 31 "..\..\..\Views\CMeterLife.xaml"
                this.lstView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstView_Loaded);

            #line default
            #line hidden
                return;

            case 5:
                this.pbMeters = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

            #line 44 "..\..\..\Views\CMeterLife.xaml"
                this.btnRefresh.Click += new System.Windows.RoutedEventHandler(this.btnRefresh_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\..\Views\CMeterLife.xaml"
                this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);

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

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

            case 3:
                this.tbContactNumber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.LineSummaryCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.ShiftSummaryCheckBox = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            case 7:
                this.dgLine = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            case 9:
                this.dgShift = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            case 11:
                this.dgDepartment = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            case 13:
                this.dgEscalation = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.dataGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #20
0
        //Заполнение сетки комплектующих
        private void FillGrid(DataGrid table, IEnumerable<UnitRepair> repairs)
        {
            table.Items.Clear();

            foreach (var repair in repairs)
                table.Items.Add(repair);

            RecordsCount.Text = "Всего записей: " + table.Items.Count;
        }
Beispiel #21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cboGroup = ((System.Windows.Controls.ComboBox)(target));

            #line 28 "..\..\..\UserControls\ucEmergency.xaml"
                this.cboGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboGroup_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.cboCategory = ((System.Windows.Controls.ComboBox)(target));

            #line 30 "..\..\..\UserControls\ucEmergency.xaml"
                this.cboCategory.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboCategory_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.cboManufacturer = ((System.Windows.Controls.ComboBox)(target));

            #line 32 "..\..\..\UserControls\ucEmergency.xaml"
                this.cboManufacturer.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboManufacturer_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.dtgItems = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 36 "..\..\..\UserControls\ucEmergency.xaml"
                this.dtgItems.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dtgItems_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

            #line 52 "..\..\..\UserControls\ucEmergency.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

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

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

            case 3:
                this.tbMarqueeSpeed = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.tbIssueMarqueeSpeed = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.escalationDurationTable = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

            case 6:
                this.tbOldPassword = ((System.Windows.Controls.PasswordBox)(target));

            #line 110 "..\..\..\SettingsManagment\Settings.xaml"
                this.tbOldPassword.PasswordChanged += new System.Windows.RoutedEventHandler(this.tbOldPassword_PasswordChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.tbnewPassword = ((System.Windows.Controls.PasswordBox)(target));

            #line 114 "..\..\..\SettingsManagment\Settings.xaml"
                this.tbnewPassword.LostFocus += new System.Windows.RoutedEventHandler(this.tbnewPassword_LostFocus);

            #line default
            #line hidden
                return;

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

            #line 126 "..\..\..\SettingsManagment\Settings.xaml"
                this.btnDone.Click += new System.Windows.RoutedEventHandler(this.btnDone_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #23
0
        internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner)
        {
            Debug.Assert(item != null, "item should not be null.");
            Debug.Assert(column != null, "column should not be null.");
            Debug.Assert(owner != null, "owner should not be null.");

            _item = item;
            _column = column;
            _owner = new WeakReference(owner);
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.InterpolationGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
         return;
     }
     this._contentLoaded = true;
 }
Beispiel #25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.MainGrid = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 69 "..\..\..\View\MainWindow.xaml"
                this.MainGrid.MouseMove += new System.Windows.Input.MouseEventHandler(this.OnMainGridMouseMove);

            #line default
            #line hidden

            #line 70 "..\..\..\View\MainWindow.xaml"
                this.MainGrid.DragEnter += new System.Windows.DragEventHandler(this.OnMainGridCheckDropTarget);

            #line default
            #line hidden

            #line 71 "..\..\..\View\MainWindow.xaml"
                this.MainGrid.DragLeave += new System.Windows.DragEventHandler(this.OnMainGridCheckDropTarget);

            #line default
            #line hidden

            #line 72 "..\..\..\View\MainWindow.xaml"
                this.MainGrid.DragOver += new System.Windows.DragEventHandler(this.OnMainGridCheckDropTarget);

            #line default
            #line hidden

            #line 73 "..\..\..\View\MainWindow.xaml"
                this.MainGrid.Drop += new System.Windows.DragEventHandler(this.OnMainGridDrop);

            #line default
            #line hidden

            #line 73 "..\..\..\View\MainWindow.xaml"
                this.MainGrid.DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.OnMainGridDataContextChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #26
0
        private static DataGridColumn CreateColumn(DataGrid gridView, object columnSource)
        {
            DgColumn col = columnSource as DgColumn;
            if (col.Control == "TextBlock")
            {
                DataGridTextColumn column = new DataGridTextColumn();
                column.Binding = new Binding(col.DisplayMember);
                return column;
            }
            else if (col.Control == "PactComboBox")
            {
                DataGridPactComboBoxColumn column = new DataGridPactComboBoxColumn();
                column.Binding = new Binding(col.DisplayMember);
                column.FeatureID = Convert.ToInt32(col.Param);
                column.SelectedValueBinding = new Binding(col.DisplayMember + "_Key");
                return column;
            }
            else if (col.Control == "DatePicker")
            {
                DataGridDateColumn column = new DataGridDateColumn();
                column.Binding = new Binding(col.DisplayMember);
               // column.SelectedValueBinding = new Binding(col.DisplayMember + "_Key");
                return column;
            }
            else//if (col.ColumnType == "TextBox")
            {
                DataGridTextColumn column = new DataGridTextColumn();
                column.Binding = new Binding(col.DisplayMember);
                return column;
            }
            //if (col.ColumnType == "MultiCombo")
            //{
            //    CustDataGridComboBoxColumn combcolumn = new CustDataGridComboBoxColumn();
            //    combcolumn.Header = col.HeaderText;
            //    combcolumn.DisplayMemberPath = col.DisplayMember;
            //    combcolumn.SelectedValuePath = col.ValueMember;
            //    combcolumn.SelectedValueBinding = new Binding(col.ValueBinding);

            //    combcolumn.ItemsSource = col.Source;
            //    combcolumn.Width = col.width;

            //    for (int i = 0; i < col.Columns.Count; i++)
            //    {
            //        GridViewColumn e = new GridViewColumn();
            //        e.Header = col.Columns[i].HeaderText;
            //        e.DisplayMemberBinding = new Binding(col.Columns[i].DisplayMember);
            //        combcolumn.Columns.Add(e);
            //    }

            //    return combcolumn;

            //}

            return null;
        }
        public static void ApplyFilters(Microsoft.Windows.Controls.DataGrid grid, string columnName, List <String> values)
        {
            var actualValue = "";

            foreach (var val in values)
            {
                var temp = AddEscapeSequece(val);
                if (actualValue == "")
                {
                    actualValue = temp + "'";
                }
                else
                {
                    actualValue = actualValue + "," + "'" + temp + "'";
                }
            }
            actualValue = actualValue.Substring(0, actualValue.Length - 1);
            var value      = actualValue;
            var itemSource = (DataView)grid.ItemsSource;

            if (itemSource == null)
            {
                return;
            }
            if (!string.IsNullOrEmpty(itemSource.RowFilter))
            {
                itemSource.RowFilter = FilterGenerator(itemSource.RowFilter, columnName, value);
            }
            else
            {
                itemSource.RowFilter = columnName + " " + " IN " + "(" + "'" + value + "'" + ")";
            }
            var count = CurrentDistictValues.Count(c => c.IsChecked);

            if (count == CurrentDistictValues.Count - 1)
            {
                CurrentDistictValues[0].IsChecked = true;
                if (CurrentListBox != null)
                {
                    CurrentListBox.ItemsSource = CurrentDistictValues;
                    CurrentListBox.UpdateLayout();
                    CurrentListBox.Items.Refresh();
                }
            }

            if (CurrentListBox != null)
            {
                var clearButton = FindControls.FindChild <Button>(CurrentListBox.Parent, "btnClear");
                if (clearButton != null)
                {
                    clearButton.IsEnabled = CurrentDistictValues.Count(c => c.IsChecked) > 0;
                }
            }
        }
Beispiel #28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dg_list = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            #line 14 "..\..\..\..\EngineerMode\HistoryDB.xaml"
                this.btn_search.Click += new System.Windows.RoutedEventHandler(this.btn_search_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\..\..\EngineerMode\HistoryDB.xaml"
                this.btn_save.Click += new System.Windows.RoutedEventHandler(this.btn_save_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.dp_to = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 5:
                this.dp_from = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

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

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

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

            case 9:
                this.ck_summaryReport = ((System.Windows.Controls.CheckBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 2:

            #line 30 "..\..\..\WinForms\Notifier.xaml"
                ((System.Windows.Controls.Expander)(target)).Expanded += new System.Windows.RoutedEventHandler(this.Expander_Expanded);

            #line default
            #line hidden

            #line 30 "..\..\..\WinForms\Notifier.xaml"
                ((System.Windows.Controls.Expander)(target)).Collapsed += new System.Windows.RoutedEventHandler(this.Expander_Collapsed);

            #line default
            #line hidden
                return;

            case 3:
                this.expGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.DGChatCaseData = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            #line 44 "..\..\..\WinForms\Notifier.xaml"
                this.btnRight.Click += new System.Windows.RoutedEventHandler(this.Right_Click);

            #line default
            #line hidden
                return;

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

            #line 46 "..\..\..\WinForms\Notifier.xaml"
                this.btnLeft.Click += new System.Windows.RoutedEventHandler(this.Left_Click);

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

            #line 4 "..\..\..\Views\CSettings.xaml"
                this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.txtHeader = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 30 "..\..\..\Views\CSettings.xaml"
                this.btnSystemConfigParameters.Click += new System.Windows.RoutedEventHandler(this.btnSystemConfigParameters_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.lstSettingDetails = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 35 "..\..\..\Views\CSettings.xaml"
                this.lstSettingDetails.LoadingRow += new System.EventHandler <Microsoft.Windows.Controls.DataGridRowEventArgs>(this.lstSettingDetails_LoadingRow);

            #line default
            #line hidden
                return;

            case 6:
                this.lblprofileName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.txtProfileName = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #31
0
 private static void CreateColumns(Microsoft.Windows.Controls.DataGrid gridView, ICollectionView view)
 {
     foreach (var item in view)
     {
         DgColumn       obj    = item as DgColumn;
         DataGridColumn column = CreateColumn(gridView, item);
         column.IsReadOnly = obj.ReadOnly;
         column.Width      = obj.Width;
         column.DisableTab = obj.DisableTab;
         column.Header     = obj.Header;
         gridView.Columns.Add(column);
     }
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.parent = ((FuelSupervisorSetting.View.StationControl)(target));
                return;

            case 2:
                this.StationListGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.aMDGroupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            #line 42 "..\..\addModifyDeleteControl.xaml"
                this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);

            #line default
            #line hidden
                return;

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

            #line 44 "..\..\addModifyDeleteControl.xaml"
                this.btnModify.Click += new System.Windows.RoutedEventHandler(this.btnModify_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\addModifyDeleteControl.xaml"
                this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.dgItem = ((Microsoft.Windows.Controls.DataGrid)(target));

            #line 54 "..\..\addModifyDeleteControl.xaml"
                this.dgItem.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgItem_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 private void MainDataGrid_TargetUpdated(object sender, DataTransferEventArgs e)
 {
     Microsoft.Windows.Controls.DataGrid dataGrid = (Microsoft.Windows.Controls.DataGrid)sender;
     if (currentSortColumnIndex != null)
     {
         if (currentSortDirection == "Ascending")
         {
             dataGrid.Columns[Int32.Parse(currentSortColumnIndex)].SortDirection = ListSortDirection.Ascending;
         }
         else
         {
             dataGrid.Columns[Int32.Parse(currentSortColumnIndex)].SortDirection = ListSortDirection.Descending;
         }
     }
 }
Beispiel #35
0
 public void UpdateData(Microsoft.Windows.Controls.DataGrid dvgItem, DataSet ds, string tblItem)
 {
     try
     {
         GetConnectionString();
         using (SqlConnection connection = new SqlConnection(builder.ConnectionString))
         {
             SqlDataAdapter    adapter = new SqlDataAdapter("SELECT * FROM " + tblItem, connection);
             SqlCommandBuilder build   = new SqlCommandBuilder(adapter);
             adapter.Update(ds.Tables[0]);
         }
     }
     catch (Exception e)
     {
         eventLog.WriteEntry(e.Message, EventLogEntryType.Error);
     }
 }
        public static Microsoft.Windows.Controls.DataGridCell GetCell(this Microsoft.Windows.Controls.DataGrid grid, Microsoft.Windows.Controls.DataGridRow row, int column)
        {
            if (row != null)
            {
                DataGridCellsPresenter presenter = GetVisualChild <DataGridCellsPresenter>(row);

                if (presenter == null)
                {
                    grid.ScrollIntoView(row, grid.Columns[column]);
                    presenter = GetVisualChild <DataGridCellsPresenter>(row);
                }

                Microsoft.Windows.Controls.DataGridCell cell = (Microsoft.Windows.Controls.DataGridCell)presenter.ItemContainerGenerator.ContainerFromIndex(column);
                return(cell);
            }
            return(null);
        }
Beispiel #37
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.gridTerms = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 2:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\TermyWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.dataGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 17 "..\..\..\ObjectBindingExamples\ObjectExample.xaml"
     this.dataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGrid_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.IDColumn = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #39
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.dgNationality = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 10 "..\..\..\UserControls\ucNationality.xaml"
     this.dgNationality.RowEditEnding += new System.EventHandler<Microsoft.Windows.Controls.DataGridRowEditEndingEventArgs>(this.dgNationality_RowEditEnding);
     
     #line default
     #line hidden
     
     #line 11 "..\..\..\UserControls\ucNationality.xaml"
     this.dgNationality.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.dgNationality_PreviewKeyDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #40
0
        //Apply theme and attach columns to DataGrid popupo control
        public override void OnApplyTemplate()
        {
            if (popupDataGrid == null)
            {

                popupDataGrid = this.Template.FindName(partPopupDataGrid, this) as DataGrid;
                if (popupDataGrid != null && columns != null)
                {
                    //Add columns to DataGrid columns
                    for (int i = 0; i < columns.Count; i++)
                        popupDataGrid.Columns.Add(columns[i]);

                    //Add event handler for DataGrid popup
                    popupDataGrid.MouseDown += new MouseButtonEventHandler(popupDataGrid_MouseDown);
                    popupDataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(popupDataGrid_SelectionChanged);

                }
            }
            //Call base class method
            base.OnApplyTemplate();
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 5 "..\..\..\Views\CourseGridView.xaml"
     ((CourseTaskProject.Views.CourseGridView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.CourseGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 11 "..\..\..\Views\CourseGridView.xaml"
     this.CourseGrid.RowEditEnding += new System.EventHandler<Microsoft.Windows.Controls.DataGridRowEditEndingEventArgs>(this.CourseGrid_RowEditEnding);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.CustomerGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 34 "..\..\..\DataSetExamples\MasterDetailExample.xaml"
     this.CustomerGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CustomerGrid_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 37 "..\..\..\DataSetExamples\MasterDetailExample.xaml"
     ((Microsoft.Windows.Controls.DataGrid)(target)).RowEditEnding += new System.EventHandler<Microsoft.Windows.Controls.DataGridRowEditEndingEventArgs>(this.DataGrid_RowEditEnding);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.dgOpenIssuesGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 17 "..\..\Procurement.xaml"
     this.dgOpenIssuesGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgOpenIssuesGrid_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btnAcknowledge = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\Procurement.xaml"
     this.btnAcknowledge.Click += new System.Windows.RoutedEventHandler(this.btnAcknowledge_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #44
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cboGroup = ((System.Windows.Controls.ComboBox)(target));
     
     #line 28 "..\..\..\UserControls\ucEmergency.xaml"
     this.cboGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboGroup_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.cboCategory = ((System.Windows.Controls.ComboBox)(target));
     
     #line 30 "..\..\..\UserControls\ucEmergency.xaml"
     this.cboCategory.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboCategory_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.cboManufacturer = ((System.Windows.Controls.ComboBox)(target));
     
     #line 32 "..\..\..\UserControls\ucEmergency.xaml"
     this.cboManufacturer.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboManufacturer_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.dtgItems = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 36 "..\..\..\UserControls\ucEmergency.xaml"
     this.dtgItems.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dtgItems_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 52 "..\..\..\UserControls\ucEmergency.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\MainWindow.xaml"
     ((PrintManager.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((PrintManager.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.dgdPrintQueue = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 4:
     this.clmnJobID = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 5:
     this.clmnOwner = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 6:
     this.clmnDocName = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 7:
     this.clmnPages = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 8:
     this.clmnStatus = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 9:
     this.clmnSize = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 10:
     this.clmnSubmitted = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 11:
     this.prgJob = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 12:
     this.lblPrintStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.btnDeleteJob = ((System.Windows.Controls.Button)(target));
     
     #line 57 "..\..\MainWindow.xaml"
     this.btnDeleteJob.Click += new System.Windows.RoutedEventHandler(this.btnDeleteJob_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.imgDeleteJob = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.btnPrintJob = ((System.Windows.Controls.Button)(target));
     
     #line 60 "..\..\MainWindow.xaml"
     this.btnPrintJob.Click += new System.Windows.RoutedEventHandler(this.btnPrintJob_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.imgPrintJob = ((System.Windows.Controls.Image)(target));
     return;
     case 17:
     this.btnManageSheets = ((System.Windows.Controls.Button)(target));
     
     #line 63 "..\..\MainWindow.xaml"
     this.btnManageSheets.Click += new System.Windows.RoutedEventHandler(this.btnManageSheets_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.imgManageSheets = ((System.Windows.Controls.Image)(target));
     return;
     case 19:
     this.btnChangePrinter = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\MainWindow.xaml"
     this.btnChangePrinter.Click += new System.Windows.RoutedEventHandler(this.btnChangePrinter_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.imgChangePrinter = ((System.Windows.Controls.Image)(target));
     return;
     case 21:
     this.lblCaptionSelectPrinter = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.lblSelectedPrinter = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.btnRefresh = ((System.Windows.Controls.Button)(target));
     
     #line 71 "..\..\MainWindow.xaml"
     this.btnRefresh.Click += new System.Windows.RoutedEventHandler(this.btnRefresh_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.imgRefresh = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.aMDGroupBox = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 2:
     this.btnAdd = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\addModifyDeleteControl.xaml"
     this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.btnDelete = ((System.Windows.Controls.Button)(target));
     
     #line 44 "..\..\addModifyDeleteControl.xaml"
     this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.dgItem = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 52 "..\..\addModifyDeleteControl.xaml"
     this.dgItem.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgItem_SelectionChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #47
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cboType = ((System.Windows.Controls.ComboBox)(target));
     
     #line 29 "..\..\..\UserControls\ucUsers.xaml"
     this.cboType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboType_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.txtName = ((System.Windows.Controls.TextBox)(target));
     
     #line 32 "..\..\..\UserControls\ucUsers.xaml"
     this.txtName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtName_TextChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.txtUserID = ((System.Windows.Controls.TextBox)(target));
     
     #line 34 "..\..\..\UserControls\ucUsers.xaml"
     this.txtUserID.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtUserID_TextChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btnClear = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\..\UserControls\ucUsers.xaml"
     this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.dtgUsers = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 6:
     this.btnAddUser = ((System.Windows.Controls.Button)(target));
     
     #line 58 "..\..\..\UserControls\ucUsers.xaml"
     this.btnAddUser.Click += new System.Windows.RoutedEventHandler(this.btnAddUser_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnEdit = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\..\UserControls\ucUsers.xaml"
     this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.btnEdit_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 74 "..\..\..\UserControls\ucUsers.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cboGroup = ((System.Windows.Controls.ComboBox)(target));
     
     #line 29 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.cboGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboGroup_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.cboCategory = ((System.Windows.Controls.ComboBox)(target));
     
     #line 30 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.cboCategory.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboCategory_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.cboManufacturer = ((System.Windows.Controls.ComboBox)(target));
     
     #line 32 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.cboManufacturer.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboManufacturer_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btnClear = ((System.Windows.Controls.Button)(target));
     
     #line 33 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.dtgItems = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 44 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.dtgItems.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dtgItems_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnAddPartsDetail = ((System.Windows.Controls.Button)(target));
     
     #line 60 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.btnAddPartsDetail.Click += new System.Windows.RoutedEventHandler(this.btnAddPartsDetail_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnEdit = ((System.Windows.Controls.Button)(target));
     
     #line 68 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.btnEdit_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnUseTool = ((System.Windows.Controls.Button)(target));
     
     #line 76 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.btnUseTool.Click += new System.Windows.RoutedEventHandler(this.btnUseTool_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 84 "..\..\..\UserControls\ucToolsPreview.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.AttendantPay = ((BMC.Presentation.CAttendantPays)(target));
     
     #line 13 "..\..\..\Views\CAttendantPays.xaml"
     this.AttendantPay.Loaded += new System.Windows.RoutedEventHandler(this.AttendantPay_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.GHandpay = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.dgHandpay = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 53 "..\..\..\Views\CAttendantPays.xaml"
     this.dgHandpay.Loaded += new System.Windows.RoutedEventHandler(this.dgHandpay_Loaded);
     
     #line default
     #line hidden
     
     #line 53 "..\..\..\Views\CAttendantPays.xaml"
     this.dgHandpay.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgHandpay_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnProcess = ((System.Windows.Controls.Button)(target));
     
     #line 68 "..\..\..\Views\CAttendantPays.xaml"
     this.btnProcess.Click += new System.Windows.RoutedEventHandler(this.btnProcess_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnVoid = ((System.Windows.Controls.Button)(target));
     
     #line 69 "..\..\..\Views\CAttendantPays.xaml"
     this.btnVoid.Click += new System.Windows.RoutedEventHandler(this.btnVoid_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnGenerateSlipNo = ((System.Windows.Controls.Button)(target));
     
     #line 70 "..\..\..\Views\CAttendantPays.xaml"
     this.btnGenerateSlipNo.Click += new System.Windows.RoutedEventHandler(this.btnGenerateSlipNo_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.TextBlock_11 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.txtAmount = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Peroids = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 2:
     this.Hours = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 3:
     this.Add = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cboGroup = ((System.Windows.Controls.ComboBox)(target));
     
     #line 29 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.cboGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboGroup_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.cboModel = ((System.Windows.Controls.ComboBox)(target));
     
     #line 31 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.cboModel.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboModel_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.txtRegNo = ((System.Windows.Controls.TextBox)(target));
     
     #line 33 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.txtRegNo.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtRegNo_TextChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.cboRepairedBy = ((System.Windows.Controls.ComboBox)(target));
     
     #line 35 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.cboRepairedBy.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboRepairedBy_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.dtpFromDate = ((Microsoft.Windows.Controls.DatePicker)(target));
     
     #line 37 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.dtpFromDate.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.dtpFromDate_SelectedDateChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.dtpToDate = ((Microsoft.Windows.Controls.DatePicker)(target));
     
     #line 39 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.dtpToDate.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.dtpToDate_SelectedDateChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnClear = ((System.Windows.Controls.Button)(target));
     
     #line 40 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.dtgHistory = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 9:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\..\UserControls\ucRepairsHistory.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 internal SelectedCellsCollection(DataGrid owner) : base(owner)
 {
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((BMC.Presentation.CGridView)(target));
     
     #line 8 "..\..\..\Views\CGridView.xaml"
     this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.GridRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.dgGridView = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 42 "..\..\..\Views\CGridView.xaml"
     this.dgGridView.Sorting += new Microsoft.Windows.Controls.DataGridSortingEventHandler(this.dgGridView_Sorting);
     
     #line default
     #line hidden
     return;
     case 5:
     this.spPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 6:
     this.CardedEvent = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     this.chkCarded = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 8:
     this.NonCardedEvent = ((System.Windows.Controls.Image)(target));
     return;
     case 9:
     this.chkNonCarded = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 10:
     this.FloatCollectionImage = ((System.Windows.Controls.Image)(target));
     return;
     case 11:
     this.chkFloatUnDelared = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 12:
     this.UnclearedImageEvent = ((System.Windows.Controls.Image)(target));
     return;
     case 13:
     this.chkUnclearedEvent = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 14:
     this.ClearedImageEvent = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.chkClearedEvent = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 16:
     this.GameCappingImage = ((System.Windows.Controls.Image)(target));
     return;
     case 17:
     this.chkGameCapping = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 18:
     this.lblHelp = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.OptionsGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 20:
     this.Border_Bottom = ((System.Windows.Controls.Border)(target));
     return;
     case 21:
     this.btnRefresh = ((System.Windows.Controls.Button)(target));
     
     #line 329 "..\..\..\Views\CGridView.xaml"
     this.btnRefresh.Click += new System.Windows.RoutedEventHandler(this.btnRefresh_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.txtLegend = ((System.Windows.Controls.Button)(target));
     
     #line 333 "..\..\..\Views\CGridView.xaml"
     this.txtLegend.Click += new System.Windows.RoutedEventHandler(this.txtLegend_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.txtLegend_ = ((System.Windows.Controls.Button)(target));
     
     #line 334 "..\..\..\Views\CGridView.xaml"
     this.txtLegend_.Click += new System.Windows.RoutedEventHandler(this.txtLegend__Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserCtrlPromoHist = ((BMC.Presentation.POS.Views.PromoHistory)(target));
     
     #line 24 "..\..\..\Views\PromoHistory.xaml"
     this.UserCtrlPromoHist.Loaded += new System.Windows.RoutedEventHandler(this.UserCtrlPromoHist_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.dgPromoHistGridView = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 40 "..\..\..\Views\PromoHistory.xaml"
     this.dgPromoHistGridView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgPromoHistGridView_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 63 "..\..\..\Views\PromoHistory.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnDetails_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 64 "..\..\..\Views\PromoHistory.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnFirstClick = ((System.Windows.Controls.Button)(target));
     
     #line 65 "..\..\..\Views\PromoHistory.xaml"
     this.btnFirstClick.Click += new System.Windows.RoutedEventHandler(this.btnFirstClick_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnPreviousClick = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\..\Views\PromoHistory.xaml"
     this.btnPreviousClick.Click += new System.Windows.RoutedEventHandler(this.btnPreviousClick_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnNextClick = ((System.Windows.Controls.Button)(target));
     
     #line 67 "..\..\..\Views\PromoHistory.xaml"
     this.btnNextClick.Click += new System.Windows.RoutedEventHandler(this.btnNextClick_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnLastClick = ((System.Windows.Controls.Button)(target));
     
     #line 68 "..\..\..\Views\PromoHistory.xaml"
     this.btnLastClick.Click += new System.Windows.RoutedEventHandler(this.btnLastClick_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.txtPageNo = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((BMC.Presentation.CAnalysis)(target));
     
     #line 11 "..\..\..\Views\CAnalysis.xaml"
     this.UserControl.Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.pnlButtons = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 4:
     this.chkDrop = ((System.Windows.Controls.RadioButton)(target));
     
     #line 111 "..\..\..\Views\CAnalysis.xaml"
     this.chkDrop.Checked += new System.Windows.RoutedEventHandler(this.chkDrop_Checked);
     
     #line default
     #line hidden
     return;
     case 5:
     this.chkDay = ((System.Windows.Controls.RadioButton)(target));
     
     #line 112 "..\..\..\Views\CAnalysis.xaml"
     this.chkDay.Checked += new System.Windows.RoutedEventHandler(this.chkDay_Checked);
     
     #line default
     #line hidden
     return;
     case 6:
     this.chkWeek = ((System.Windows.Controls.RadioButton)(target));
     
     #line 113 "..\..\..\Views\CAnalysis.xaml"
     this.chkWeek.Checked += new System.Windows.RoutedEventHandler(this.chkWeek_Checked);
     
     #line default
     #line hidden
     return;
     case 7:
     this.chkMonth = ((System.Windows.Controls.RadioButton)(target));
     
     #line 114 "..\..\..\Views\CAnalysis.xaml"
     this.chkMonth.Checked += new System.Windows.RoutedEventHandler(this.chkMonth_Checked);
     
     #line default
     #line hidden
     return;
     case 8:
     this.chkWeekInvoice = ((System.Windows.Controls.RadioButton)(target));
     
     #line 115 "..\..\..\Views\CAnalysis.xaml"
     this.chkWeekInvoice.Checked += new System.Windows.RoutedEventHandler(this.chkWeekInvoice_Checked);
     
     #line default
     #line hidden
     return;
     case 9:
     this.OuterGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.dgGridView = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 11:
     this.gvColumnDescription = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 12:
     this.gvColumnValue = ((Microsoft.Windows.Controls.DataGridTextColumn)(target));
     return;
     case 13:
     this.dgGridWeek = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 14:
     this.btnPrint = ((System.Windows.Controls.Button)(target));
     
     #line 179 "..\..\..\Views\CAnalysis.xaml"
     this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.btnDetails = ((System.Windows.Controls.Button)(target));
     
     #line 180 "..\..\..\Views\CAnalysis.xaml"
     this.btnDetails.Click += new System.Windows.RoutedEventHandler(this.btnDetails_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.InnerGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 17:
     this.WFHostStartTime = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
     return;
     case 18:
     this.WFHostEndTime = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
     return;
     case 19:
     this.lblStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.progressBar1 = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 21:
     this.btncancel = ((System.Windows.Controls.Button)(target));
     
     #line 228 "..\..\..\Views\CAnalysis.xaml"
     this.btncancel.Click += new System.Windows.RoutedEventHandler(this.btncancel_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #56
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.file = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 2:
     this.preferences = ((System.Windows.Controls.MenuItem)(target));
     
     #line 13 "..\..\..\..\Views\MainWindow.xaml"
     this.preferences.Click += new System.Windows.RoutedEventHandler(this.Preferences_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.exit = ((System.Windows.Controls.MenuItem)(target));
     
     #line 14 "..\..\..\..\Views\MainWindow.xaml"
     this.exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.edit = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 5:
     this.selectAllContainers = ((System.Windows.Controls.MenuItem)(target));
     
     #line 17 "..\..\..\..\Views\MainWindow.xaml"
     this.selectAllContainers.Click += new System.Windows.RoutedEventHandler(this.selectAllContainers_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.deselectAllContainers = ((System.Windows.Controls.MenuItem)(target));
     
     #line 18 "..\..\..\..\Views\MainWindow.xaml"
     this.deselectAllContainers.Click += new System.Windows.RoutedEventHandler(this.deselectAllContainers_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.Reports = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 8:
     this.loadScheme = ((System.Windows.Controls.MenuItem)(target));
     
     #line 22 "..\..\..\..\Views\MainWindow.xaml"
     this.loadScheme.Click += new System.Windows.RoutedEventHandler(this.Report_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.containerList = ((System.Windows.Controls.MenuItem)(target));
     
     #line 23 "..\..\..\..\Views\MainWindow.xaml"
     this.containerList.Click += new System.Windows.RoutedEventHandler(this.ButtonContainerList_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.scheme3D = ((System.Windows.Controls.MenuItem)(target));
     
     #line 24 "..\..\..\..\Views\MainWindow.xaml"
     this.scheme3D.Click += new System.Windows.RoutedEventHandler(this.ButtonView3D_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.scheme2D = ((System.Windows.Controls.MenuItem)(target));
     
     #line 25 "..\..\..\..\Views\MainWindow.xaml"
     this.scheme2D.Click += new System.Windows.RoutedEventHandler(this.ButtonView2D_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.Help = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 13:
     this.AboutVisualPacker = ((System.Windows.Controls.MenuItem)(target));
     
     #line 28 "..\..\..\..\Views\MainWindow.xaml"
     this.AboutVisualPacker.Click += new System.Windows.RoutedEventHandler(this.AboutProgramm_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.Toolbar1 = ((System.Windows.Controls.ToolBar)(target));
     return;
     case 15:
     
     #line 33 "..\..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonCalculate_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.vehicleTree = ((System.Windows.Controls.TreeView)(target));
     
     #line 45 "..\..\..\..\Views\MainWindow.xaml"
     this.vehicleTree.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.vehicleTree_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 17:
     this.gridSplitter1 = ((System.Windows.Controls.GridSplitter)(target));
     return;
     case 18:
     this.dataGrid1 = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 19:
     
     #line 160 "..\..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuDeleteContainer_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     
     #line 161 "..\..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuMoveContainers_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     
     #line 162 "..\..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuMoveContainersToExistingLoad_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.dataGrid2 = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 23:
     
     #line 197 "..\..\..\..\Views\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuVehicle_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.textBox = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #57
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cmbViewTypeSelector = ((System.Windows.Controls.ComboBox)(target));
     
     #line 32 "..\..\Reports.xaml"
     this.cmbViewTypeSelector.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbViewTypeSelector_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.lblFrom = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.dpFrom = ((Microsoft.Windows.Controls.DatePicker)(target));
     return;
     case 4:
     this.lblTo = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.dpTo = ((Microsoft.Windows.Controls.DatePicker)(target));
     return;
     case 6:
     this.btnGenerate = ((System.Windows.Controls.Button)(target));
     
     #line 43 "..\..\Reports.xaml"
     this.btnGenerate.Click += new System.Windows.RoutedEventHandler(this.btnGenerate_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnExport = ((System.Windows.Controls.Button)(target));
     
     #line 44 "..\..\Reports.xaml"
     this.btnExport.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.dgReportGrid = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.aMDGroupBox = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 2:
     this.dgItem = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 56 "..\..\DisplayControl.xaml"
     this.dgItem.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgItem_SelectionChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\Views\cHourly.xaml"
     ((BMC.Presentation.POS.Views.cHourly)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.cmbGroupBy = ((System.Windows.Controls.ComboBox)(target));
     
     #line 224 "..\..\..\Views\cHourly.xaml"
     this.cmbGroupBy.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbCombos_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.cmbLast = ((System.Windows.Controls.ComboBox)(target));
     
     #line 225 "..\..\..\Views\cHourly.xaml"
     this.cmbLast.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbCombos_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.cmbOptions = ((System.Windows.Controls.ComboBox)(target));
     
     #line 238 "..\..\..\Views\cHourly.xaml"
     this.cmbOptions.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbOptions_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.cmbOptions2 = ((System.Windows.Controls.ComboBox)(target));
     
     #line 245 "..\..\..\Views\cHourly.xaml"
     this.cmbOptions2.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbCombos_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.lstHourly = ((Microsoft.Windows.Controls.DataGrid)(target));
     
     #line 252 "..\..\..\Views\cHourly.xaml"
     this.lstHourly.Sorting += new Microsoft.Windows.Controls.DataGridSortingEventHandler(this.lstHourly_Sorting);
     
     #line default
     #line hidden
     
     #line 267 "..\..\..\Views\cHourly.xaml"
     this.lstHourly.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lstHourly_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 7:
     this.btnDeails = ((System.Windows.Controls.Button)(target));
     
     #line 317 "..\..\..\Views\cHourly.xaml"
     this.btnDeails.Click += new System.Windows.RoutedEventHandler(this.btnDeails_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btnSummary = ((System.Windows.Controls.Button)(target));
     
     #line 318 "..\..\..\Views\cHourly.xaml"
     this.btnSummary.Click += new System.Windows.RoutedEventHandler(this.btnSummary_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnExport = ((System.Windows.Controls.Button)(target));
     
     #line 319 "..\..\..\Views\cHourly.xaml"
     this.btnExport.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #60
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cboGroup = ((System.Windows.Controls.ComboBox)(target));
     
     #line 23 "..\..\..\UserControls\ucCarModel.xaml"
     this.cboGroup.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboGroup_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btnClear = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\..\UserControls\ucCarModel.xaml"
     this.btnClear.Click += new System.Windows.RoutedEventHandler(this.btnClear_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.dtgCarModels = ((Microsoft.Windows.Controls.DataGrid)(target));
     return;
     case 4:
     this.btnAddCarModel = ((System.Windows.Controls.Button)(target));
     
     #line 46 "..\..\..\UserControls\ucCarModel.xaml"
     this.btnAddCarModel.Click += new System.Windows.RoutedEventHandler(this.btnAddCarModel_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnEdit = ((System.Windows.Controls.Button)(target));
     
     #line 54 "..\..\..\UserControls\ucCarModel.xaml"
     this.btnEdit.Click += new System.Windows.RoutedEventHandler(this.btnEdit_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.btnClose = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\..\UserControls\ucCarModel.xaml"
     this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }