private void UserControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { var selectedItem = (DataContext as IEntityGridViewModel).SelectedItem; if (selectedItem == null) return; Type type = selectedItem.GetType(); var relationshipProperties = type.GetProperties() .Where(t => t.Name != "Relationships" && t.GetGetMethod().IsVirtual && t.PropertyType.IsGenericType && t.PropertyType.GetGenericTypeDefinition() == typeof(ICollection<>)) .ToList(); foreach (var property in relationshipProperties) { //Binding binding = new Binding() { Path = new PropertyPath("SelectedItem." + property.Name), Source = this.DataContext }; TextBlock textBlock = new TextBlock() { Text = property.Name }; //BindingOperations.SetBinding(textBlock, TextBlock.TextProperty, binding); relatedEntitiesStackPanel.Children.Add(textBlock); Binding binding = new Binding() { Path = new PropertyPath("SelectedItem." + property.Name), Source = this.DataContext }; DataGridControl listView = new DataGridControl(); var value = property.GetValue(selectedItem) as System.Collections.IEnumerable; //listView.ItemsSource = value; BindingOperations.SetBinding(listView, DataGrid.ItemsSourceProperty, binding); relatedEntitiesStackPanel.Children.Add(listView); } }
private static Xceed.Wpf.DataGrid.Column CreateColumn(Xceed.Wpf.DataGrid.DataGridControl dataGrid, object columnSource) { Xceed.Wpf.DataGrid.Column column = new Xceed.Wpf.DataGrid.Column(); column.Title = GetPropertyValue(columnSource, "HeaderText"); column.FieldName = GetPropertyValue(columnSource, "DisplayMember") as string; return(column); }
private static void ColumnsSourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { Xceed.Wpf.DataGrid.DataGridControl dataGrid = obj as Xceed.Wpf.DataGrid.DataGridControl; if (dataGrid != null) { dataGrid.Columns.Clear(); if (e.OldValue != null) { ICollectionView view = CollectionViewSource.GetDefaultView(e.OldValue); if (view != null) { RemoveHandlers(dataGrid, view); } } if (e.NewValue != null) { ICollectionView view = CollectionViewSource.GetDefaultView(e.NewValue); if (view != null) { AddHandlers(dataGrid, view); CreateColumns(dataGrid, view); } } } }
public SelectionManager( DataGridControl owner ) { if( owner == null ) throw new ArgumentNullException( "owner" ); m_owner = owner; }
public GeneratorNodeFactory( NotifyCollectionChangedEventHandler itemsChangedHandler, NotifyCollectionChangedEventHandler groupsChangedHandler, EventHandler<ExpansionStateChangedEventArgs> expansionStateChangedHandler, EventHandler isExpandedChangingHandler, EventHandler isExpandedChangedHandler, DataGridControl dataGridControl ) { if( itemsChangedHandler == null ) throw new ArgumentNullException( "itemsChangedHandler" ); if( groupsChangedHandler == null ) throw new ArgumentNullException( "groupsChangedHandler" ); if( expansionStateChangedHandler == null ) throw new ArgumentNullException( "expansionStateChangedHandler" ); if( isExpandedChangingHandler == null ) throw new ArgumentNullException( "isExpandedChangingHandler" ); if( isExpandedChangedHandler == null ) throw new ArgumentNullException( "isExpandedChangedHandler" ); m_itemsChangedHandler = itemsChangedHandler; m_groupsChangedHandler = groupsChangedHandler; m_expansionStateChangedHandler = expansionStateChangedHandler; m_isExpandedChangingHandler = isExpandedChangingHandler; m_isExpandedChangedHandler = isExpandedChangedHandler; if( dataGridControl != null ) { m_dataGridControl = new WeakReference( dataGridControl ); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 51 "..\..\..\Controls\PageOrder.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CreateNewOrder); #line default #line hidden return; case 2: this.OrderGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 54 "..\..\..\Controls\PageOrder.xaml" this.OrderGrid.SelectionChanged += new Xceed.Wpf.DataGrid.DataGridSelectionChangedEventHandler(this.OrderGrid_SelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.txtQuantity = ((Xceed.Wpf.Toolkit.DoubleUpDown)(target)); return; case 2: #line 56 "..\..\..\Controls\StockPage.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeachClick); #line default #line hidden return; case 3: #line 61 "..\..\..\Controls\StockPage.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CreateNewMaterial); #line default #line hidden return; case 4: this._dataGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
internal static CustomItemContainerGenerator CreateGenerator( DataGridControl parentGridControl, CollectionView collectionView, DataGridContext dataGridContext ) { CustomItemContainerGenerator newGenerator = new CustomItemContainerGenerator( collectionView, dataGridContext, parentGridControl ); dataGridContext.SetGenerator( newGenerator ); return newGenerator; }
/// <summary> /// Builds collectionSource DetailDescriptions.ItemProperties and collection of detail columns. /// </summary> /// <param name="collectionSource"></param> /// <param name="xceedControl"></param> /// <param name="detail"></param> public void BuildDetailStructure(DataGridCollectionViewSource collectionSource, DataGridControl xceedGrid, DetailConfiguration detail) { Debug.Assert(null != collectionSource.DetailDescriptions); Debug.Assert(1 == collectionSource.DetailDescriptions.Count); _BuildCollectionSource(collectionSource.DetailDescriptions[0].ItemProperties); _BuildColumnsCollection(detail.Columns); // Add stops as detail of route. xceedGrid.DetailConfigurations.Clear(); xceedGrid.DetailConfigurations.Add(detail); // NOTE: Set this property so that columns with custom order properties from default // settings were not added to grid automatically. xceedGrid.DetailConfigurations[0].AutoCreateColumns = false; // Collapse all detail and reexpand it. List<DataGridContext> dataGridContexts = new List<DataGridContext>(xceedGrid.GetChildContexts()); foreach (DataGridContext dataGridContext in dataGridContexts) { dataGridContext.ParentDataGridContext.CollapseDetails(dataGridContext.ParentItem); dataGridContext.ParentDataGridContext.ExpandDetails(dataGridContext.ParentItem); } }
private static void CreateColumns(Xceed.Wpf.DataGrid.DataGridControl dataGrid, ICollectionView view) { foreach (var item in view) { Xceed.Wpf.DataGrid.Column column = CreateColumn(dataGrid, item); dataGrid.Columns.Add(column); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UserControl = ((Safire.Library.ArtistList)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.noresults = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.lst = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 59 "..\..\..\Library\ArtistList.xaml" this.lst.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lst_PreviewMouseDoubleClick); #line default #line hidden return; case 5: this.albums = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.duration = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.artist = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.tracklist = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 84 "..\..\..\Library\ArtistList.xaml" this.tracklist.PreviewMouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.tracklist_MouseDoubleClick); #line default #line hidden return; case 9: this.rateCtl = ((Safire.Library.RateControl)(target)); return; case 10: this.selArtist = ((System.Windows.Controls.Grid)(target)); return; } this._contentLoaded = true; }
private void ff_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { control = sender as DataGridControl; this.inpc = e.NewValue as INotifyPropertyChanged; if (this.inpc != null) { this.propInfo = e.NewValue.GetType().GetProperty(this.Path); Debug.WriteLine("New DataContext: {0}", e.NewValue); this.inpc.PropertyChanged += this.inpc_PropertyChanged; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 2: this.dataGridPaginas = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dGListaUsuarios = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 2: this.btnCerrarInf = ((System.Windows.Controls.Button)(target)); #line 63 "..\..\..\..\..\views\Mensajes\TodosUsuarios.xaml" this.btnCerrarInf.Click += new System.Windows.RoutedEventHandler(this.btnCerrar_Click); #line default #line hidden return; case 3: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 4: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 5: this.chkTodosUsuarios = ((System.Windows.Controls.CheckBox)(target)); return; case 6: this.chkTodasInmobiliarias = ((System.Windows.Controls.CheckBox)(target)); return; case 7: this.btnCerrar = ((System.Windows.Controls.Button)(target)); #line 79 "..\..\..\..\..\views\Mensajes\TodosUsuarios.xaml" this.btnCerrar.Click += new System.Windows.RoutedEventHandler(this.btnCerrar_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.lbl_Usuarios = ((System.Windows.Controls.Label)(target)); return; case 2: this.dataGridElementos = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 3: this.button3 = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LogWindow = ((Processes_Manage.ProcessesLogDlg)(target)); #line 5 "..\..\..\..\2应用程序\XmlLog\ProcessesLogDlg.xaml" this.LogWindow.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.dataGridControl = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.detailMusicGroupName = ((System.Windows.Controls.TextBlock)(target)); return; case 2: this.detailMusicGroupNationality = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.detailMusicGroupType = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.detailMusicGroupCreatedDate = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.detailMusicGroupEndedDate = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.profileImage = ((System.Windows.Controls.Image)(target)); return; case 7: this.MusicianGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 8: this.SongGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.WindowMain = ((FreqMngr.MainWindow)(target)); return; case 2: this.PnlMain = ((System.Windows.Controls.DockPanel)(target)); return; case 3: this.BarMain = ((System.Windows.Controls.ToolBar)(target)); return; case 4: this.GridMain = ((System.Windows.Controls.Grid)(target)); return; case 5: this.ClmGroups = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 6: this.ClmFreqs = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 7: this.ClmEdit = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 8: this.DataGridFreqs = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this._demo = ((Xceed.Wpf.Toolkit.LiveExplorer.Samples.DataGrid.Views.DataGridView)(target)); return; case 2: #line 31 "..\..\..\..\..\..\Samples\DataGrid\Views\DataGridView.xaml" ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate); #line default #line hidden return; case 3: this._dataGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 20 "..\..\MainWindow.xaml" ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Click); #line default #line hidden return; case 2: #line 21 "..\..\MainWindow.xaml" ((System.Windows.Controls.Ribbon.RibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.Load_Click); #line default #line hidden return; case 3: this.PG = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target)); return; case 4: this.DGV = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 6: this.HelixView = ((HelixToolkit.Wpf.HelixViewport3D)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ShippingConsole = ((WpfFront.Views.ShippingConsoleView)(target)); return; case 2: this.lvNotification = ((System.Windows.Controls.ListView)(target)); return; case 3: this.exToday = ((Odyssey.Controls.OdcExpander)(target)); #line 45 "..\..\..\..\Trace\Views\ShippingConsoleView.xaml" this.exToday.Expanded += new System.Windows.RoutedEventHandler(this.exToday_Expanded); #line default #line hidden return; case 4: this.lvToday = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 5: this.exWeek = ((Odyssey.Controls.OdcExpander)(target)); #line 106 "..\..\..\..\Trace\Views\ShippingConsoleView.xaml" this.exWeek.Expanded += new System.Windows.RoutedEventHandler(this.exWeek_Expanded); #line default #line hidden return; case 6: this.lvWeek = ((System.Windows.Controls.ListView)(target)); return; case 7: this.exMonth = ((Odyssey.Controls.OdcExpander)(target)); #line 123 "..\..\..\..\Trace\Views\ShippingConsoleView.xaml" this.exMonth.Expanded += new System.Windows.RoutedEventHandler(this.exMonth_Expanded); #line default #line hidden return; case 8: this.lvMonth = ((System.Windows.Controls.ListView)(target)); return; case 9: this.btnPrint = ((System.Windows.Controls.Button)(target)); #line 160 "..\..\..\..\Trace\Views\ShippingConsoleView.xaml" this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click); #line default #line hidden return; case 10: this.btnAutomatic = ((System.Windows.Controls.Button)(target)); #line 167 "..\..\..\..\Trace\Views\ShippingConsoleView.xaml" this.btnAutomatic.Click += new System.Windows.RoutedEventHandler(this.btnAutomatic_Click); #line default #line hidden return; case 11: this.cboPicker = ((System.Windows.Controls.ComboBox)(target)); #line 181 "..\..\..\..\Trace\Views\ShippingConsoleView.xaml" this.cboPicker.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboPicker_SelectionChanged); #line default #line hidden return; case 12: this.stkPikerOrders = ((System.Windows.Controls.StackPanel)(target)); return; case 13: this.lvPickOrders = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Method inits grid's print configuration /// </summary> /// <param name="xceedGrid"></param> private void _InitPrintConfiguration(DataGridControl xceedGrid) { // if current page contains "Print" button and print configuration defined in structure if (_headerTemplate != null) { PrintTableView view = new PrintTableView(); view.PageHeaders.Add(_headerTemplate); view.PageFooters.Add((DataTemplate)App.Current.FindResource(PRINT_FOOTER_RESOURCE_NAME)); xceedGrid.PrintView = view; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.busyIndo = ((Xceed.Wpf.Toolkit.BusyIndicator)(target)); return; case 2: this.SearchBox_Unique_id = ((System.Windows.Controls.TextBox)(target)); #line 36 "..\..\Orders.xaml" this.SearchBox_Unique_id.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 3: this.SearchBox_Title = ((System.Windows.Controls.TextBox)(target)); #line 42 "..\..\Orders.xaml" this.SearchBox_Title.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 4: this.SearchBox_Description = ((System.Windows.Controls.TextBox)(target)); #line 48 "..\..\Orders.xaml" this.SearchBox_Description.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 5: this.Textcategory_id = ((Xceed.Wpf.Toolkit.DropDownButton)(target)); return; case 6: this.treeView = ((System.Windows.Controls.TreeView)(target)); #line 57 "..\..\Orders.xaml" this.treeView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.treeView_MouseDoubleClick); #line default #line hidden #line 57 "..\..\Orders.xaml" this.treeView.KeyDown += new System.Windows.Input.KeyEventHandler(this.treeView_KeyDown); #line default #line hidden return; case 7: this.SearchBox_Color = ((System.Windows.Controls.ComboBox)(target)); #line 78 "..\..\Orders.xaml" this.SearchBox_Color.DropDownClosed += new System.EventHandler(this.SearchBox_Model_DropDownClosed); #line default #line hidden return; case 8: this.PanelPrice = ((System.Windows.Controls.WrapPanel)(target)); return; case 9: this.LabelMinPrice = ((System.Windows.Controls.Label)(target)); return; case 10: this.RangeCarPrice = ((Xceed.Wpf.Toolkit.RangeSlider)(target)); #line 88 "..\..\Orders.xaml" this.RangeCarPrice.LowerValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarPrice_LowerValueChanged); #line default #line hidden #line 88 "..\..\Orders.xaml" this.RangeCarPrice.HigherValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarPrice_HigherValueChanged); #line default #line hidden return; case 11: this.LabelMaxPrice = ((System.Windows.Controls.Label)(target)); return; case 12: this.PanelAmount = ((System.Windows.Controls.WrapPanel)(target)); return; case 13: this.LabelMinAmount = ((System.Windows.Controls.Label)(target)); return; case 14: this.RangeCarAmount = ((Xceed.Wpf.Toolkit.RangeSlider)(target)); #line 97 "..\..\Orders.xaml" this.RangeCarAmount.LowerValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarAmount_LowerValueChanged); #line default #line hidden #line 97 "..\..\Orders.xaml" this.RangeCarAmount.HigherValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarAmount_HigherValueChanged); #line default #line hidden return; case 15: this.LabelMaxAmount = ((System.Windows.Controls.Label)(target)); return; case 16: this.SearchBox_Make = ((System.Windows.Controls.ComboBox)(target)); #line 114 "..\..\Orders.xaml" this.SearchBox_Make.DropDownClosed += new System.EventHandler(this.SearchBox_Make_DropDownClosed); #line default #line hidden return; case 17: this.SearchBox_Model = ((System.Windows.Controls.ComboBox)(target)); #line 132 "..\..\Orders.xaml" this.SearchBox_Model.DropDownClosed += new System.EventHandler(this.SearchBox_Model_DropDownClosed); #line default #line hidden return; case 18: this.CheckboxCar = ((System.Windows.Controls.CheckBox)(target)); #line 137 "..\..\Orders.xaml" this.CheckboxCar.Checked += new System.Windows.RoutedEventHandler(this.CheckboxCar_Checked_change); #line default #line hidden #line 137 "..\..\Orders.xaml" this.CheckboxCar.Unchecked += new System.Windows.RoutedEventHandler(this.CheckboxCar_Unchecked); #line default #line hidden return; case 19: this.DataGrid_1 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 20: this.DataGrid_2 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 21: #line 180 "..\..\Orders.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Remove); #line default #line hidden return; case 22: this.TextAmount = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 23: #line 182 "..\..\Orders.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Insert); #line default #line hidden return; case 24: #line 183 "..\..\Orders.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_Checkout); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.cboReport = ((System.Windows.Controls.ComboBox)(target)); #line 42 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.cboReport.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged); #line default #line hidden return; case 2: this.txtToShow = ((System.Windows.Controls.TextBox)(target)); return; case 3: #line 48 "..\..\..\..\..\Trace\Views\QueriesView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Run); #line default #line hidden return; case 4: this.stkRptOp = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.txtRecords = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.btnFilter = ((System.Windows.Controls.Button)(target)); #line 58 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.btnFilter.Click += new System.Windows.RoutedEventHandler(this.btnFilter_Click); #line default #line hidden return; case 7: this.extToXls = ((System.Windows.Controls.Button)(target)); #line 62 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.extToXls.Click += new System.Windows.RoutedEventHandler(this.extToXls_Click); #line default #line hidden return; case 8: this.btnPrintx = ((System.Windows.Controls.Button)(target)); #line 66 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.btnPrintx.Click += new System.Windows.RoutedEventHandler(this.btnPrintx_Click); #line default #line hidden return; case 9: this.btnFiledS = ((System.Windows.Controls.Button)(target)); #line 72 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.btnFiledS.Click += new System.Windows.RoutedEventHandler(this.btnFiledS_Click); #line default #line hidden return; case 10: this.stkReport = ((System.Windows.Controls.StackPanel)(target)); return; case 11: this.parametersHost = ((System.Windows.Controls.ContentControl)(target)); return; case 12: this.exportFormatComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 13: this.includeColumnHeadersCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 14: this.UseFieldNamesInHeaderCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 15: this.detailDepthTextBox = ((Xceed.Wpf.Controls.NumericTextBox)(target)); return; case 16: this.repeatParentDataCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 17: this.excelOptionsPanel = ((System.Windows.Controls.Grid)(target)); return; case 18: this.isHeaderFixedCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 19: this.statFunctionDepthTextBox = ((Xceed.Wpf.Controls.NumericTextBox)(target)); return; case 20: this.exportStatFunctionsAsFormulasCheckBox = ((System.Windows.Controls.CheckBox)(target)); return; case 21: this.csvOptionsPanel = ((System.Windows.Controls.Grid)(target)); return; case 22: this.separatorComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 23: this.textQualifierComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 24: this.dateTimeFormatComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 25: this.numberFormatComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 26: #line 343 "..\..\..\..\..\Trace\Views\QueriesView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.export_Click); #line default #line hidden return; case 27: this.chkStandardPrintView = ((System.Windows.Controls.RadioButton)(target)); #line 364 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.chkStandardPrintView.Checked += new System.Windows.RoutedEventHandler(this.SelectedPrintViewChanged); #line default #line hidden return; case 28: this.chkConfiguredPrintView = ((System.Windows.Controls.RadioButton)(target)); #line 372 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.chkConfiguredPrintView.Checked += new System.Windows.RoutedEventHandler(this.SelectedPrintViewChanged); #line default #line hidden return; case 29: this.chkCustomPrintView = ((System.Windows.Controls.RadioButton)(target)); #line 380 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.chkCustomPrintView.Checked += new System.Windows.RoutedEventHandler(this.SelectedPrintViewChanged); #line default #line hidden return; case 30: this.m_printButton = ((System.Windows.Controls.Button)(target)); #line 392 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.m_printButton.Click += new System.Windows.RoutedEventHandler(this.ButtonPrint_Click); #line default #line hidden return; case 31: this.m_exportButton = ((System.Windows.Controls.Button)(target)); #line 398 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.m_exportButton.Click += new System.Windows.RoutedEventHandler(this.ButtonExport_Click); #line default #line hidden return; case 32: this.progressScrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; case 33: this.textProgressInformation = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.TextName = ((System.Windows.Controls.TextBox)(target)); return; case 35: #line 446 "..\..\..\..\..\Trace\Views\QueriesView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 36: this.btnUpd = ((System.Windows.Controls.Button)(target)); #line 448 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.btnUpd.Click += new System.Windows.RoutedEventHandler(this.btnUpd_Click); #line default #line hidden return; case 37: this.btnDelRep = ((System.Windows.Controls.Button)(target)); #line 451 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.btnDelRep.Click += new System.Windows.RoutedEventHandler(this.btnDelRep_Click); #line default #line hidden return; case 38: this.GridDetails = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 39: this.tbView = ((Xceed.Wpf.DataGrid.Views.TableView)(target)); return; case 40: this.popUcFilters = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 41: this.brDocList = ((System.Windows.Controls.Border)(target)); return; case 42: this.stkFilters = ((System.Windows.Controls.WrapPanel)(target)); return; case 43: this.btnPop = ((System.Windows.Controls.Button)(target)); #line 532 "..\..\..\..\..\Trace\Views\QueriesView.xaml" this.btnPop.Click += new System.Windows.RoutedEventHandler(this.btnPop_Click); #line default #line hidden return; case 44: #line 535 "..\..\..\..\..\Trace\Views\QueriesView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2); #line default #line hidden return; case 45: #line 538 "..\..\..\..\..\Trace\Views\QueriesView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Run); #line default #line hidden return; case 46: this.stkProcess = ((System.Windows.Controls.StackPanel)(target)); return; case 47: this.stkProcess2 = ((System.Windows.Controls.StackPanel)(target)); return; case 48: this.ucCountSh = ((WpfFront.Common.UserControls.InventoryCountSchedule)(target)); return; case 49: this.popFields = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 50: this.lvSource = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 51: this.lvDest = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 52: #line 642 "..\..\..\..\..\Trace\Views\QueriesView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 53: #line 645 "..\..\..\..\..\Trace\Views\QueriesView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Run); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Unit = ((WpfFront.Views.UnitView)(target)); return; case 2: this.stkSearchForm = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.dgSearch = ((System.Windows.Controls.Grid)(target)); return; case 4: this.txtSearch = ((System.Windows.Controls.TextBox)(target)); #line 49 "..\..\..\..\..\Master\Views\UnitView.xaml" this.txtSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSearch_TextChanged); #line default #line hidden return; case 5: this.btnNew = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\..\..\..\Master\Views\UnitView.xaml" this.btnNew.Click += new System.Windows.RoutedEventHandler(this.btnNew_Click); #line default #line hidden return; case 6: this.btnAdmGroup = ((System.Windows.Controls.CheckBox)(target)); #line 60 "..\..\..\..\..\Master\Views\UnitView.xaml" this.btnAdmGroup.Click += new System.Windows.RoutedEventHandler(this.btnAdmGroup_Click); #line default #line hidden return; case 7: this.dgList = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 67 "..\..\..\..\..\Master\Views\UnitView.xaml" this.dgList.GotFocus += new System.Windows.RoutedEventHandler(this.dgList_GotFocus); #line default #line hidden return; case 8: this.stkEdit = ((System.Windows.Controls.StackPanel)(target)); return; case 9: this.frmNotification = ((Core.WPF.FormNotification)(target)); return; case 10: this.dgEdit = ((System.Windows.Controls.Grid)(target)); return; case 11: this.txtUnitGroup = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.cboUnitGroup = ((System.Windows.Controls.ComboBox)(target)); return; case 13: this.txtBaseAmount = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.stkButtons = ((System.Windows.Controls.StackPanel)(target)); return; case 15: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 187 "..\..\..\..\..\Master\Views\UnitView.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click); #line default #line hidden return; case 16: this.btnDelete = ((System.Windows.Controls.Button)(target)); #line 193 "..\..\..\..\..\Master\Views\UnitView.xaml" this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click); #line default #line hidden return; } this._contentLoaded = true; }
public static void CancelNewDataItem( IEnumerable itemsSourceCollection, DataGridControl dataGridControl, object newItem, int newItemIndex ) { DataGridCollectionViewBase dataGridCollectionViewBase = itemsSourceCollection as DataGridCollectionViewBase; if( dataGridCollectionViewBase != null ) { if( dataGridCollectionViewBase.CurrentAddItem == newItem ) { // The DataGridCollectionViewBAse's CancelNew will take care of calling // the item's CancelEdit if it must do so. dataGridCollectionViewBase.CancelNew(); } return; } if( ( dataGridControl != null ) && ( dataGridControl.ItemsSource == null ) ) { //unbound return; } ICancelAddNew cancelAddNew = itemsSourceCollection as ICancelAddNew; if( cancelAddNew == null ) { CollectionView collectionView = itemsSourceCollection as CollectionView; cancelAddNew = ( collectionView == null ) ? null : collectionView.SourceCollection as ICancelAddNew; } if( cancelAddNew != null ) { cancelAddNew.CancelNew( newItemIndex ); return; } IEditableObject editableObject = ItemsSourceHelper.GetEditableObject( newItem ); // editableObject can be an xceed datarow when directly inserted as Items in the DataGridControl. if( ( editableObject != null ) && ( !( editableObject is Xceed.Wpf.DataGrid.DataRow ) ) ) { editableObject.CancelEdit(); return; } if( newItemIndex != -1 ) { IList list = itemsSourceCollection as IList; if( list == null ) { CollectionView collectionView = itemsSourceCollection as CollectionView; list = ( collectionView == null ) ? null : collectionView.SourceCollection as IList; } if( ( list != null ) && ( !list.IsFixedSize ) ) { list.RemoveAt( newItemIndex ); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UserControl = ((Safire.Library.LibraryControl)(target)); #line 18 "..\..\..\Library\Library.xaml" this.UserControl.SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged); #line default #line hidden return; case 3: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 4: this.Tabs = ((MahApps.Metro.Controls.MetroTabControl)(target)); #line 120 "..\..\..\Library\Library.xaml" this.Tabs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabSelectionChanged); #line default #line hidden return; case 5: this.noresults = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.tracklist = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 7: this.artistList = ((Safire.Library.ArtistList)(target)); return; case 8: this.albumLst = ((Safire.Library.AlbumList)(target)); return; case 9: this.genreLst = ((Safire.Library.GenreList)(target)); return; case 10: this.grdDD = ((System.Windows.Controls.Grid)(target)); return; case 11: this.Container = ((System.Windows.Controls.Grid)(target)); return; case 12: this.plugTree = ((System.Windows.Controls.TreeView)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AdminTrackOption = ((WpfFront.Views.AdminTrackOptionView)(target)); return; case 2: this.stkSearchForm = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.dgSearch = ((System.Windows.Controls.Grid)(target)); return; case 4: this.btnNew = ((System.Windows.Controls.Button)(target)); #line 50 "..\..\..\..\..\General\Views\AdminTrackOptionView.xaml" this.btnNew.Click += new System.Windows.RoutedEventHandler(this.btnNew_Click); #line default #line hidden return; case 5: this.dgList = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 65 "..\..\..\..\..\General\Views\AdminTrackOptionView.xaml" this.dgList.GotFocus += new System.Windows.RoutedEventHandler(this.dgList_GotFocus); #line default #line hidden return; case 6: this.stkEdit = ((System.Windows.Controls.StackPanel)(target)); return; case 7: this.frmNotification = ((Core.WPF.FormNotification)(target)); return; case 8: this.dgEdit = ((System.Windows.Controls.Grid)(target)); return; case 9: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 189 "..\..\..\..\..\General\Views\AdminTrackOptionView.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click); #line default #line hidden return; } this._contentLoaded = true; }
public static Column CreateColumnFromItemsSourceField( DataGridControl dataGridControl, IDictionary<Type, CellEditor> defaultCellEditors, FieldDescriptor field, bool autoCreateForeignKeyConfigurations ) { if( ( field.IsASubRelationship ) || ( !field.Browsable ) ) return null; string fieldName = field.Name; Type dataType = field.DataType; Column dataColumn = new Column(); dataColumn.IsAutoCreated = true; dataColumn.FieldName = fieldName; bool readOnly = field.ReadOnly; bool overrideReadOnlyForInsertion = field.OverrideReadOnlyForInsertion; // We only set ReadOnly when the value is true in order for the inheritence chain to work. // Otherwise, the column value is always used instead of the row or grid value. if( readOnly ) dataColumn.ReadOnly = readOnly; dataColumn.OverrideReadOnlyForInsertion = overrideReadOnlyForInsertion; dataColumn.Title = field.DisplayName; // Disable warning for DisplayMemberBinding when internaly used #pragma warning disable 618 dataColumn.DisplayMemberBinding = ItemsSourceHelper.CreateDefaultBinding( false, field.Name, field, false, ( readOnly && !overrideReadOnlyForInsertion ), dataType ); #pragma warning restore 618 //mark the Column's Binding as AutoCreated. dataColumn.IsBindingAutoCreated = true; dataColumn.IsBoundToDataGridUnboundItemProperty = field.IsDataGridUnboundItemProperty; CellEditor cellEditor = null; if( defaultCellEditors != null ) { defaultCellEditors.TryGetValue( dataType, out cellEditor ); } if( ( field.ForeignKeyDescription != null ) && ( field.ForeignKeyDescription.ItemsSource != null ) && ( autoCreateForeignKeyConfigurations ) ) { // We will only use the default foreign key CellEditor // if: // - a ForeignKey ItemsSource was detected // - the grid allows the auto-creation of the ForeignKeyConfigurations // else, use the default CellEditor if( cellEditor == null ) { cellEditor = DefaultCellEditorSelector.ForeignKeyCellEditor; } // Update the ForeignKeyConfiguration from the ForeignKeyDescription // found on the FieldDescriptor ForeignKeyConfiguration.SynchronizeForeignKeyConfigurationFromForeignKeyDescription( dataColumn, field.ForeignKeyDescription, autoCreateForeignKeyConfigurations ); } if( cellEditor == null ) { cellEditor = DefaultCellEditorSelector.SelectCellEditor( dataType ); } dataColumn.CellEditor = cellEditor; return dataColumn; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MediaWindow.xaml" ((NeginProject.MediaWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 9 "..\..\MediaWindow.xaml" ((NeginProject.MediaWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden return; case 2: this.grid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 3: this.presetComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.AddButton = ((System.Windows.Controls.Button)(target)); #line 420 "..\..\MediaWindow.xaml" this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; case 5: this.ShowInWindowsButton = ((System.Windows.Controls.Button)(target)); #line 421 "..\..\MediaWindow.xaml" this.ShowInWindowsButton.Click += new System.Windows.RoutedEventHandler(this.ShowInWindowsButton_Click); #line default #line hidden return; case 6: this.ChangeThemeButton = ((System.Windows.Controls.Button)(target)); #line 422 "..\..\MediaWindow.xaml" this.ChangeThemeButton.Click += new System.Windows.RoutedEventHandler(this.ChangeThemeButton_Click); #line default #line hidden return; case 7: this.GridBackgroundBrush = ((System.Windows.Controls.ComboBox)(target)); return; case 8: this.BackgroundButton = ((System.Windows.Controls.Button)(target)); #line 424 "..\..\MediaWindow.xaml" this.BackgroundButton.Click += new System.Windows.RoutedEventHandler(this.BackgroundButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ShippingModule = ((WpfFront.Views.OrderMngrV2View)(target)); return; case 2: this.txtTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.imgDocs = ((System.Windows.Controls.Image)(target)); #line 91 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.imgDocs.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.imgDocs_MouseDown); #line default #line hidden return; case 4: this.cboAccount = ((System.Windows.Controls.ComboBox)(target)); #line 100 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.cboAccount.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboAccount_SelectionChanged); #line default #line hidden return; case 5: this.cboDocs = ((System.Windows.Controls.ComboBox)(target)); #line 105 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.cboDocs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboDocs_SelectionChanged); #line default #line hidden return; case 6: this.cboItem = ((System.Windows.Controls.ComboBox)(target)); #line 111 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.cboItem.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboItem_SelectionChanged); #line default #line hidden return; case 7: #line 115 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown); #line default #line hidden return; case 8: this.bntReset = ((System.Windows.Controls.Button)(target)); #line 119 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.bntReset.Click += new System.Windows.RoutedEventHandler(this.bntReset_Click); #line default #line hidden return; case 9: this.ucDocList = ((WpfFront.Common.UserControls.DocumentList)(target)); return; case 10: this.tabStep = ((System.Windows.Controls.TabControl)(target)); #line 141 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.tabStep.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabStep_SelectionChanged); #line default #line hidden return; case 11: this.docName = ((System.Windows.Controls.StackPanel)(target)); return; case 12: this.chkAll = ((System.Windows.Controls.TextBlock)(target)); #line 153 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.chkAll.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.chkAll_MouseDown); #line default #line hidden return; case 13: this.uncheckAll = ((System.Windows.Controls.TextBlock)(target)); #line 155 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.uncheckAll.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.uncheckAll_MouseDown); #line default #line hidden return; case 14: this.dgDetails = ((System.Windows.Controls.ListView)(target)); #line 170 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.dgDetails.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dgDetails_SelectionChanged); #line default #line hidden #line 171 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" this.dgDetails.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.dgDetails_Click)); #line default #line hidden return; case 15: this.gvLines = ((System.Windows.Controls.GridView)(target)); return; case 17: this.dgVendorDetails = ((System.Windows.Controls.ListView)(target)); return; case 18: this.txtComment = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.dgSelected = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 20: this.cboProcess = ((System.Windows.Controls.ComboBox)(target)); return; case 21: #line 375 "..\..\..\..\..\Trace\Views\OrderMngrV2View.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 22: this.popup3 = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 23: this.ucDocLine = ((WpfFront.Common.UserControls.AdminDocumentLine)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 6 "..\..\..\Result3D.xaml" ((NeginProject.Result3D)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 6 "..\..\..\Result3D.xaml" ((NeginProject.Result3D)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden return; case 2: this.tableflowViewRadio = ((System.Windows.Controls.RadioButton)(target)); #line 24 "..\..\..\Result3D.xaml" this.tableflowViewRadio.Checked += new System.Windows.RoutedEventHandler(this.TableflowViewRadio_Checked); #line default #line hidden return; case 3: this.tableViewRadio = ((System.Windows.Controls.RadioButton)(target)); #line 30 "..\..\..\Result3D.xaml" this.tableViewRadio.Checked += new System.Windows.RoutedEventHandler(this.TableViewRadio_Checked); #line default #line hidden return; case 4: this.cardViewRadio = ((System.Windows.Controls.RadioButton)(target)); #line 35 "..\..\..\Result3D.xaml" this.cardViewRadio.Checked += new System.Windows.RoutedEventHandler(this.CardViewRadio_Checked); #line default #line hidden return; case 5: this.compactCardViewRadio = ((System.Windows.Controls.RadioButton)(target)); #line 40 "..\..\..\Result3D.xaml" this.compactCardViewRadio.Checked += new System.Windows.RoutedEventHandler(this.CompactCardViewRadio_Checked); #line default #line hidden return; case 6: this.cardflow3DView = ((System.Windows.Controls.RadioButton)(target)); #line 45 "..\..\..\Result3D.xaml" this.cardflow3DView.Checked += new System.Windows.RoutedEventHandler(this.Cardflow3DView_Checked); #line default #line hidden return; case 7: this.ThemeSelectorComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 49 "..\..\..\Result3D.xaml" this.ThemeSelectorComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ThemeSelectorComboBox_SelectionChanged); #line default #line hidden return; case 8: this.grid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 9: this.label1 = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\GetProducts.xaml" ((ShopManager.GetProducts)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.busyIndo = ((Xceed.Wpf.Toolkit.BusyIndicator)(target)); return; case 3: this.SearchBox_Unique_id = ((System.Windows.Controls.TextBox)(target)); #line 35 "..\..\GetProducts.xaml" this.SearchBox_Unique_id.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 4: this.SearchBox_Title = ((System.Windows.Controls.TextBox)(target)); #line 41 "..\..\GetProducts.xaml" this.SearchBox_Title.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 5: this.SearchBox_Description = ((System.Windows.Controls.TextBox)(target)); #line 47 "..\..\GetProducts.xaml" this.SearchBox_Description.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 6: this.Textcategory_id = ((Xceed.Wpf.Toolkit.DropDownButton)(target)); return; case 7: this.treeView = ((System.Windows.Controls.TreeView)(target)); #line 56 "..\..\GetProducts.xaml" this.treeView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.treeView_MouseDoubleClick); #line default #line hidden #line 56 "..\..\GetProducts.xaml" this.treeView.KeyDown += new System.Windows.Input.KeyEventHandler(this.treeView_KeyDown); #line default #line hidden return; case 8: this.PanelPrice = ((System.Windows.Controls.WrapPanel)(target)); return; case 9: this.LabelMinPrice = ((System.Windows.Controls.Label)(target)); return; case 10: this.RangeCarPrice = ((Xceed.Wpf.Toolkit.RangeSlider)(target)); #line 72 "..\..\GetProducts.xaml" this.RangeCarPrice.LowerValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarPrice_LowerValueChanged); #line default #line hidden #line 72 "..\..\GetProducts.xaml" this.RangeCarPrice.HigherValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarPrice_HigherValueChanged); #line default #line hidden return; case 11: this.LabelMaxPrice = ((System.Windows.Controls.Label)(target)); return; case 12: this.PanelAmount = ((System.Windows.Controls.WrapPanel)(target)); return; case 13: this.LabelMinAmount = ((System.Windows.Controls.Label)(target)); return; case 14: this.RangeCarAmount = ((Xceed.Wpf.Toolkit.RangeSlider)(target)); #line 81 "..\..\GetProducts.xaml" this.RangeCarAmount.LowerValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarAmount_LowerValueChanged); #line default #line hidden #line 81 "..\..\GetProducts.xaml" this.RangeCarAmount.HigherValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarAmount_HigherValueChanged); #line default #line hidden return; case 15: this.LabelMaxAmount = ((System.Windows.Controls.Label)(target)); return; case 16: this.SearchBox_Make = ((System.Windows.Controls.ComboBox)(target)); #line 98 "..\..\GetProducts.xaml" this.SearchBox_Make.DropDownClosed += new System.EventHandler(this.SearchBox_Make_DropDownClosed); #line default #line hidden return; case 17: this.SearchBox_Model = ((System.Windows.Controls.ComboBox)(target)); #line 116 "..\..\GetProducts.xaml" this.SearchBox_Model.DropDownClosed += new System.EventHandler(this.SearchBox_Model_DropDownClosed); #line default #line hidden return; case 18: this.DataGrid_1 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 19: this.DataGrid_2 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 20: this.IntegerUpD = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target)); return; case 21: #line 134 "..\..\GetProducts.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
private static void RemoveHandlers(Xceed.Wpf.DataGrid.DataGridControl gridView, ICollectionView view) { view.CollectionChanged -= ColumnsSource_CollectionChanged; GetDataGridControlsForColumnSource(view).Remove(gridView); }
public static void UpdateColumnsOnItemsPropertiesChanged( DataGridControl dataGridControl, ColumnCollection columns, bool autoCreateForeignKeyConfigurations, NotifyCollectionChangedEventArgs e, DataGridItemPropertyCollection itemProperties ) { if( dataGridControl == null ) return; switch( e.Action ) { case NotifyCollectionChangedAction.Add: { foreach( DataGridItemPropertyBase itemProperty in e.NewItems ) { string name = itemProperty.Name; if( columns[ name ] == null ) { Column column = ItemsSourceHelper.CreateColumnFromItemsSourceField( dataGridControl, dataGridControl.DefaultCellEditors, ItemsSourceHelper.CreateFieldFromDataGridItemProperty( itemProperty ), autoCreateForeignKeyConfigurations ); if( column != null ) { columns.Add( column ); ItemsSourceHelper.ApplySettingsRepositoryToColumn( column ); } } } } break; case NotifyCollectionChangedAction.Remove: { foreach( DataGridItemPropertyBase itemProperty in e.OldItems ) { string name = itemProperty.Name; Column column = columns[ name ] as Column; if( ( column != null ) && ( column.IsAutoCreated ) ) { columns.Remove( column ); } } break; } case NotifyCollectionChangedAction.Replace: { foreach( DataGridItemPropertyBase itemProperty in e.OldItems ) { string name = itemProperty.Name; Column column = columns[ name ] as Column; if( ( column != null ) && ( column.IsAutoCreated ) ) { columns.Remove( column ); } } foreach( DataGridItemPropertyBase itemProperty in e.NewItems ) { string name = itemProperty.Name; if( columns[ name ] == null ) { Column column = ItemsSourceHelper.CreateColumnFromItemsSourceField( dataGridControl, dataGridControl.DefaultCellEditors, ItemsSourceHelper.CreateFieldFromDataGridItemProperty( itemProperty ), autoCreateForeignKeyConfigurations ); if( column != null ) { columns.Add( column ); ItemsSourceHelper.ApplySettingsRepositoryToColumn( column ); } } } break; } case NotifyCollectionChangedAction.Reset: { for( int i = columns.Count - 1; i >= 0; i-- ) { Column dataColumn = columns[ i ] as Column; if( ( dataColumn != null ) && ( dataColumn.IsAutoCreated ) ) { columns.Remove( dataColumn ); } } foreach( DataGridItemPropertyBase itemProperty in itemProperties ) { string name = itemProperty.Name; if( columns[ name ] == null ) { Column column = ItemsSourceHelper.CreateColumnFromItemsSourceField( dataGridControl, dataGridControl.DefaultCellEditors, ItemsSourceHelper.CreateFieldFromDataGridItemProperty( itemProperty ), autoCreateForeignKeyConfigurations ); if( column != null ) { columns.Add( column ); ItemsSourceHelper.ApplySettingsRepositoryToColumn( column ); } } } break; } //case NotifyCollectionChangedAction.Move: default: break; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 2: #line 39 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 3: #line 43 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveToDatabase); #line default #line hidden return; case 4: #line 49 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToCSV); #line default #line hidden return; case 5: #line 51 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ToCSV); #line default #line hidden return; case 6: this.textBoxFind = ((System.Windows.Controls.TextBox)(target)); return; case 7: #line 66 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FindMusicGroup); #line default #line hidden return; case 8: this.MusicGroupGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 9: this.DeleteButton = ((System.Windows.Controls.Button)(target)); #line 127 "..\..\MainWindow.xaml" this.DeleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click); #line default #line hidden return; case 10: this.ViewButton = ((System.Windows.Controls.Button)(target)); #line 136 "..\..\MainWindow.xaml" this.ViewButton.Click += new System.Windows.RoutedEventHandler(this.ViewButton_Click); #line default #line hidden return; case 11: this.AddButton = ((System.Windows.Controls.Button)(target)); #line 145 "..\..\MainWindow.xaml" this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
public static object AddNewDataItem( IEnumerable itemsSourceCollection, DataGridControl dataGridControl, out int itemIndex ) { DataGridCollectionViewBase dataGridCollectionViewBase = itemsSourceCollection as DataGridCollectionViewBase; if( dataGridCollectionViewBase != null ) { if( !dataGridCollectionViewBase.CanAddNew ) throw new InvalidOperationException( "An attempt was made to add a new data item to a source that does not support insertion." ); itemIndex = dataGridCollectionViewBase.Count; return dataGridCollectionViewBase.AddNew(); } if( ( dataGridControl != null ) && ( dataGridControl.ItemsSource == null ) ) { //unbound #pragma warning disable 618 AddingNewDataItemEventArgs eventArgs = new AddingNewDataItemEventArgs(); dataGridControl.OnAddingNewDataItem( eventArgs ); object newItem = eventArgs.DataItem; #pragma warning restore 618 if( newItem == null ) throw new InvalidOperationException( "The AddingNewDataItem event did not return a new data item because the grid is not bound to a data source." ); itemIndex = dataGridControl.Items.Add( newItem ); return newItem; } DataView dataView = itemsSourceCollection as DataView; if( dataView == null ) { CollectionView collectionView = itemsSourceCollection as CollectionView; dataView = ( collectionView == null ) ? null : collectionView.SourceCollection as DataView; } if( dataView != null ) { itemIndex = dataView.Count; return dataView.AddNew(); } IBindingList bindingList = itemsSourceCollection as IBindingList; if( bindingList == null ) { CollectionView collectionView = itemsSourceCollection as CollectionView; bindingList = ( collectionView == null ) ? null : collectionView.SourceCollection as IBindingList; } if( ( bindingList != null ) && ( bindingList.AllowNew ) ) { itemIndex = bindingList.Count; return bindingList.AddNew(); } Type itemType = ItemsSourceHelper.GetItemTypeFromEnumeration( itemsSourceCollection ); if( itemType == null ) throw new InvalidOperationException( "An attempt was made to use a source whose item type cannot be determined." ); try { itemIndex = -1; return Activator.CreateInstance( itemType ); } catch( MissingMethodException exception ) { throw new InvalidOperationException( "An attempt was made to use a source whose item type does not have a default constructor.", exception ); } catch( Exception exception ) { throw new InvalidOperationException( "An unsuccessful attempt was made to create an instance of the source's item type using the item's default constructor.", exception ); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.KitAssembly = ((WpfFront.Views.KitAssemblyView)(target)); return; case 2: this.stpDocList2 = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.txtSearch = ((System.Windows.Controls.TextBox)(target)); #line 59 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.txtSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSearch_TextChanged); #line default #line hidden return; case 4: this.chkLate = ((System.Windows.Controls.CheckBox)(target)); #line 60 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.chkLate.Checked += new System.Windows.RoutedEventHandler(this.chkLate_Checked); #line default #line hidden #line 60 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.chkLate.Unchecked += new System.Windows.RoutedEventHandler(this.chkLate_Checked); #line default #line hidden return; case 5: #line 61 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown); #line default #line hidden return; case 6: this.dgDocument = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 73 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.dgDocument.GotFocus += new System.Windows.RoutedEventHandler(this.dgDocument_Click); #line default #line hidden return; case 7: this.ctnColsMenu1 = ((System.Windows.Controls.ContextMenu)(target)); return; case 8: #line 85 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" ((System.Windows.Controls.MenuItem)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.MenuItem_MouseEnter); #line default #line hidden return; case 9: this.tabMenu = ((System.Windows.Controls.TabControl)(target)); return; case 10: this.lvDocumentData = ((System.Windows.Controls.ListView)(target)); return; case 11: this.xRefresh = ((System.Windows.Controls.Image)(target)); #line 197 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.xRefresh.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.xRefresh_MouseDown); #line default #line hidden return; case 12: this.btnRecTkt = ((System.Windows.Controls.Button)(target)); #line 200 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnRecTkt.Click += new System.Windows.RoutedEventHandler(this.btnRecTkt_Click); #line default #line hidden return; case 13: this.ucDirectPrint = ((WpfFront.Common.UserControls.DirectPrint)(target)); return; case 14: this.btnPrintOpc = ((System.Windows.Controls.Button)(target)); #line 212 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnPrintOpc.Click += new System.Windows.RoutedEventHandler(this.btnPrintOpc_Click); #line default #line hidden return; case 15: this.cboStatus = ((System.Windows.Controls.ComboBox)(target)); return; case 16: this.cboPickM = ((System.Windows.Controls.ComboBox)(target)); return; case 17: this.btnChangeStatus = ((System.Windows.Controls.Button)(target)); #line 256 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnChangeStatus.Click += new System.Windows.RoutedEventHandler(this.btnChangeStatus_Click); #line default #line hidden return; case 18: this.expDocLines = ((Odyssey.Controls.OdcExpander)(target)); return; case 19: this.dgLines = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 20: this.tbItemReceive = ((System.Windows.Controls.TabItem)(target)); return; case 21: this.stkBox = ((System.Windows.Controls.StackPanel)(target)); return; case 22: this.frmNotification = ((Core.WPF.FormNotification)(target)); return; case 23: this.txtBinLabel = ((System.Windows.Controls.TextBox)(target)); #line 370 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.txtBinLabel.LostFocus += new System.Windows.RoutedEventHandler(this.txtBinLabel_LostFocus); #line default #line hidden return; case 24: this.txtProcessResult = ((System.Windows.Controls.TextBlock)(target)); return; case 25: this.btnConfirmAsemblyOrder = ((System.Windows.Controls.Button)(target)); #line 385 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnConfirmAsemblyOrder.Click += new System.Windows.RoutedEventHandler(this.btnConfirmAsemblyOrder_Click); #line default #line hidden return; case 26: this.btnPrintOpc2 = ((System.Windows.Controls.Button)(target)); #line 389 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnPrintOpc2.Click += new System.Windows.RoutedEventHandler(this.btnPrintOpc_Click); #line default #line hidden return; case 27: this.expManual = ((Odyssey.Controls.OdcExpander)(target)); #line 402 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.expManual.Expanded += new System.Windows.RoutedEventHandler(this.expLabel_Expanded); #line default #line hidden #line 402 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.expManual.Collapsed += new System.Windows.RoutedEventHandler(this.expLabel_Collapsed); #line default #line hidden return; case 28: this.dgReceive = ((System.Windows.Controls.Grid)(target)); return; case 29: this.txtProduct = ((WpfFront.Common.UserControls.SearchProduct)(target)); return; case 30: this.cboUnit = ((System.Windows.Controls.ListView)(target)); #line 451 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.cboUnit.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboUnit_SelectionChanged); #line default #line hidden return; case 31: this.txtQuantity = ((System.Windows.Controls.TextBox)(target)); return; case 32: this.txtProductTrackMsg = ((System.Windows.Controls.TextBlock)(target)); return; case 33: this.btnTrack = ((System.Windows.Controls.Button)(target)); #line 479 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnTrack.Click += new System.Windows.RoutedEventHandler(this.btnTrack_Click); #line default #line hidden return; case 34: this.btnReceive = ((System.Windows.Controls.Button)(target)); #line 480 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnReceive.Click += new System.Windows.RoutedEventHandler(this.btnReceive_Click); #line default #line hidden return; case 35: this.lvBinStock = ((System.Windows.Controls.StackPanel)(target)); return; case 36: this.lsStock = ((System.Windows.Controls.ListView)(target)); #line 490 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.lsStock.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lsStock_SelectionChanged); #line default #line hidden return; case 37: this.expLabel = ((Odyssey.Controls.OdcExpander)(target)); #line 524 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.expLabel.Expanded += new System.Windows.RoutedEventHandler(this.expLabel_Expanded); #line default #line hidden #line 524 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.expLabel.Collapsed += new System.Windows.RoutedEventHandler(this.expLabel_Collapsed); #line default #line hidden return; case 38: this.txtScanLabel = ((System.Windows.Controls.TextBox)(target)); #line 532 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.txtScanLabel.LostFocus += new System.Windows.RoutedEventHandler(this.txtScanLabel_LostFocus); #line default #line hidden return; case 39: this.stkLabelTrack = ((System.Windows.Controls.StackPanel)(target)); return; case 40: this.lvTrackLabel = ((System.Windows.Controls.ListView)(target)); return; case 41: this.btnLabelTrakOpt = ((System.Windows.Controls.Button)(target)); #line 556 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnLabelTrakOpt.Click += new System.Windows.RoutedEventHandler(this.btnLabelTrakOpt_Click); #line default #line hidden return; case 42: this.lvLabelsAvailable = ((System.Windows.Controls.ListView)(target)); return; case 43: this.btnReceiveLabel = ((System.Windows.Controls.Button)(target)); #line 582 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnReceiveLabel.Click += new System.Windows.RoutedEventHandler(this.btnReceiveLabel_Click); #line default #line hidden return; case 44: this.dgDocumentBalance = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 603 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.dgDocumentBalance.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dgPostingBalance_MouseDoubleClick); #line default #line hidden return; case 45: this.btnReceiptAtOnce = ((System.Windows.Controls.Button)(target)); #line 648 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnReceiptAtOnce.Click += new System.Windows.RoutedEventHandler(this.btnReceiptAtOnce_Click); #line default #line hidden return; case 46: this.tbItemTracking = ((System.Windows.Controls.TabItem)(target)); return; case 47: this.lvTrackProduct = ((System.Windows.Controls.ListView)(target)); return; case 48: this.txtQtyTrack = ((System.Windows.Controls.TextBox)(target)); return; case 49: this.btnAddTrackOpt = ((System.Windows.Controls.Button)(target)); #line 712 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnAddTrackOpt.Click += new System.Windows.RoutedEventHandler(this.Add_TrackOpt_Click); #line default #line hidden return; case 50: this.txtTrackRemaining = ((System.Windows.Controls.TextBlock)(target)); return; case 51: this.txtTrackRemain = ((System.Windows.Controls.TextBlock)(target)); return; case 52: this.lvManualTrackList = ((System.Windows.Controls.ListView)(target)); return; case 53: this.btnTrackRemove = ((System.Windows.Controls.Button)(target)); #line 739 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnTrackRemove.Click += new System.Windows.RoutedEventHandler(this.btnTrackRemove_Click); #line default #line hidden return; case 54: this.btnTrackReceive = ((System.Windows.Controls.Button)(target)); #line 740 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnTrackReceive.Click += new System.Windows.RoutedEventHandler(this.btnTrackReceive_Click); #line default #line hidden return; case 55: this.popup1 = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 56: this.ucRecBalance = ((WpfFront.Common.UserControls.PopUpShell)(target)); return; case 57: this.popup2 = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 58: this.txtConfirm = ((System.Windows.Controls.TextBlock)(target)); return; case 59: this.cboPrinter = ((System.Windows.Controls.ComboBox)(target)); return; case 60: this.btnCofirmContinue = ((System.Windows.Controls.Button)(target)); #line 791 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnCofirmContinue.Click += new System.Windows.RoutedEventHandler(this.btnCofirmContinue_Click); #line default #line hidden return; case 61: this.btnConfirmCancel = ((System.Windows.Controls.Button)(target)); #line 793 "..\..\..\..\Trace\Views\KitAssemblyView.xaml" this.btnConfirmCancel.Click += new System.Windows.RoutedEventHandler(this.btnConfirmCancel_Click); #line default #line hidden return; } this._contentLoaded = true; }
public static void EndNewDataItem( IEnumerable itemsSourceCollection, DataGridControl dataGridControl, object newItem, ref int newItemIndex ) { DataGridCollectionViewBase dataGridCollectionViewBase = itemsSourceCollection as DataGridCollectionViewBase; if( dataGridCollectionViewBase != null ) { if( dataGridCollectionViewBase.CurrentAddItem == newItem ) { // The DataGridCollectionViewBase's EndNew will take care of calling // the item's EndEdit if it must do so. dataGridCollectionViewBase.CommitNew(); } return; } if( ( dataGridControl != null ) && ( dataGridControl.ItemsSource == null ) ) { //unbound return; } ICancelAddNew cancelAddNew = itemsSourceCollection as ICancelAddNew; if( cancelAddNew == null ) { CollectionView collectionView = itemsSourceCollection as CollectionView; cancelAddNew = ( collectionView == null ) ? null : collectionView.SourceCollection as ICancelAddNew; } if( cancelAddNew != null ) { cancelAddNew.EndNew( newItemIndex ); return; } IEditableObject editableObject = ItemsSourceHelper.GetEditableObject( newItem ); // editableObject can be a datarow when directly inserted as Items in the DataGridControl. if( ( editableObject != null ) && ( !( editableObject is Xceed.Wpf.DataGrid.DataRow ) ) ) { editableObject.EndEdit(); return; } IBindingList bindingList = itemsSourceCollection as IBindingList; if( bindingList == null ) { CollectionView collectionView = itemsSourceCollection as CollectionView; bindingList = ( collectionView == null ) ? null : collectionView.SourceCollection as IBindingList; } if( ( bindingList != null ) && ( bindingList.AllowNew ) ) { // In that case the item is already added into the list by IBindingList.AddNew. return; } IList list = itemsSourceCollection as IList; if( list == null ) { CollectionView collectionView = itemsSourceCollection as CollectionView; list = ( collectionView == null ) ? null : collectionView.SourceCollection as IList; } if( ( list == null ) || ( list.IsFixedSize ) ) throw new InvalidOperationException( "An attempt was made to insert an item into a source that does not implement the IList interface or that has a fixed size." ); newItemIndex = list.Count; list.Add( newItem ); }
private static void AddHandlers(Xceed.Wpf.DataGrid.DataGridControl dataGrid, ICollectionView view) { GetDataGridControlsForColumnSource(view).Add(dataGrid); view.CollectionChanged += ColumnsSource_CollectionChanged; }
public static FrameworkElement FindContainerFromChildOrRowSelectorOrSelf( DataGridControl dataGridControl, DependencyObject originalChildOrSelf ) { if( ( dataGridControl == null ) || ( originalChildOrSelf == null ) ) return null; DependencyObject childOrSelf = originalChildOrSelf; var containerDataGridContext = DataGridControl.GetDataGridContext( childOrSelf ); var containerDataGridControl = ( containerDataGridContext == null ) ? null : containerDataGridContext.DataGridControl; var container = childOrSelf as IDataGridItemContainer; while( ( childOrSelf != null ) && ( ( container == null ) || ( dataGridControl != containerDataGridControl ) ) ) { childOrSelf = TreeHelper.GetParent( childOrSelf ); container = childOrSelf as IDataGridItemContainer; if( container != null ) { // Let's check if the container's parent DataGridControl is itself inside a container. containerDataGridContext = DataGridControl.GetDataGridContext( childOrSelf ); containerDataGridControl = ( containerDataGridContext == null ) ? null : containerDataGridContext.DataGridControl; } } //This will happen in the case of a RowSelector, this is the way to retreive the row from the selector. if( container == null ) { container = DataGridControl.GetContainer( originalChildOrSelf ) as IDataGridItemContainer; } Debug.Assert( ( container == null ) || ( container is FrameworkElement ), "( container == null ) || ( container is FrameworkElement )" ); #if LOG Log.Assert( null, ( container == null ) || ( container is FrameworkElement ), "( container == null ) || ( container is FrameworkElement )" ); #endif return container as FrameworkElement; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dp_finicio = ((System.Windows.Controls.DatePicker)(target)); return; case 2: this.dp_ffinal = ((System.Windows.Controls.DatePicker)(target)); return; case 3: this.Com_estado = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.But_Buscar = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\..\..\Objs\Controles\us_Busqueda_Solicitudes_PJ.xaml" this.But_Buscar.Click += new System.Windows.RoutedEventHandler(this.But_Buscar_Click); #line default #line hidden return; case 5: this.datagrid12 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; } this._contentLoaded = true; }
private CustomItemContainerGenerator( CollectionView collectionView, DataGridContext dataGridContext, DataGridControl gridControl ) { if( collectionView == null ) { throw new ArgumentNullException( "collectionView" ); } if( dataGridContext == null ) { throw new ArgumentNullException( "dataGridContext" ); } if( gridControl == null ) { throw new ArgumentNullException( "gridControl" ); } m_dataGridControl = gridControl; m_dataGridContext = dataGridContext; m_collectionView = collectionView; IList listInterface = m_collectionView as IList; if( listInterface == null ) { listInterface = m_collectionView.SourceCollection as IList; } m_listInterface = listInterface; //initialize explicitly (set a local value) to the DataItem attached property (for nested DataGridControls) CustomItemContainerGenerator.SetDataItemProperty( m_dataGridControl, CustomItemContainerGenerator.NotSet ); //Notify to the ItemCollection CollectionChanged event. CollectionChangedEventManager.AddListener( m_collectionView, this ); //Notify to the DataGridControl's or DetailConfiguration GroupConfigurationSelector Changed event. GroupConfigurationSelectorChangedEventManager.AddListener( m_dataGridContext, this ); CollectionChangedEventManager.AddListener( m_dataGridContext.DetailConfigurations, this ); // It would have been neat to create a DependencyPropertyChangedEventManager but the // WeakEventManager was not made to work with DependencyPropertyDescriptor.AddValueChanged. //identifies a Master generator if( m_dataGridContext.SourceDetailConfiguration == null ) { ItemsSourceChangeCompletedEventManager.AddListener( m_dataGridControl, this ); ViewChangedEventManager.AddListener( m_dataGridControl, this ); ThemeChangedEventManager.AddListener( m_dataGridControl, this ); } m_nodeFactory = new GeneratorNodeFactory( this.OnGeneratorNodeItemsCollectionChanged, this.OnGeneratorNodeGroupsCollectionChanged, this.OnGeneratorNodeExpansionStateChanged, this.OnGroupGeneratorNodeIsExpandedChanging, this.OnGroupGeneratorNodeIsExpandedChanged ); m_headerFooterDataContextBinding = new Binding(); m_headerFooterDataContextBinding.Source = m_dataGridControl; m_headerFooterDataContextBinding.Path = new PropertyPath( DataGridControl.DataContextProperty ); this.ResetNodeList(); this.IncrementCurrentGenerationCount(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.busyIndo = ((Xceed.Wpf.Toolkit.BusyIndicator)(target)); return; case 2: this.SearchBox_Unique_id = ((System.Windows.Controls.TextBox)(target)); #line 35 "..\..\GiveProducts.xaml" this.SearchBox_Unique_id.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 3: this.SearchBox_Title = ((System.Windows.Controls.TextBox)(target)); #line 41 "..\..\GiveProducts.xaml" this.SearchBox_Title.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 4: this.SearchBox_Description = ((System.Windows.Controls.TextBox)(target)); #line 47 "..\..\GiveProducts.xaml" this.SearchBox_Description.KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyUp); #line default #line hidden return; case 5: this.Textcategory_id = ((Xceed.Wpf.Toolkit.DropDownButton)(target)); return; case 6: this.treeView = ((System.Windows.Controls.TreeView)(target)); #line 56 "..\..\GiveProducts.xaml" this.treeView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.treeView_MouseDoubleClick); #line default #line hidden #line 56 "..\..\GiveProducts.xaml" this.treeView.KeyDown += new System.Windows.Input.KeyEventHandler(this.treeView_KeyDown); #line default #line hidden return; case 7: this.SearchBox_Color = ((System.Windows.Controls.ComboBox)(target)); #line 77 "..\..\GiveProducts.xaml" this.SearchBox_Color.DropDownClosed += new System.EventHandler(this.SearchBox_Model_DropDownClosed); #line default #line hidden return; case 8: this.PanelPrice = ((System.Windows.Controls.WrapPanel)(target)); return; case 9: this.LabelMinPrice = ((System.Windows.Controls.Label)(target)); return; case 10: this.RangeCarPrice = ((Xceed.Wpf.Toolkit.RangeSlider)(target)); #line 87 "..\..\GiveProducts.xaml" this.RangeCarPrice.LowerValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarPrice_LowerValueChanged); #line default #line hidden #line 87 "..\..\GiveProducts.xaml" this.RangeCarPrice.HigherValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarPrice_HigherValueChanged); #line default #line hidden return; case 11: this.LabelMaxPrice = ((System.Windows.Controls.Label)(target)); return; case 12: this.PanelAmount = ((System.Windows.Controls.WrapPanel)(target)); return; case 13: this.LabelMinAmount = ((System.Windows.Controls.Label)(target)); return; case 14: this.RangeCarAmount = ((Xceed.Wpf.Toolkit.RangeSlider)(target)); #line 96 "..\..\GiveProducts.xaml" this.RangeCarAmount.LowerValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarAmount_LowerValueChanged); #line default #line hidden #line 96 "..\..\GiveProducts.xaml" this.RangeCarAmount.HigherValueChanged += new System.Windows.RoutedEventHandler(this.RangeCarAmount_HigherValueChanged); #line default #line hidden return; case 15: this.LabelMaxAmount = ((System.Windows.Controls.Label)(target)); return; case 16: this.SearchBox_Make = ((System.Windows.Controls.ComboBox)(target)); #line 113 "..\..\GiveProducts.xaml" this.SearchBox_Make.DropDownClosed += new System.EventHandler(this.SearchBox_Make_DropDownClosed); #line default #line hidden return; case 17: this.SearchBox_Model = ((System.Windows.Controls.ComboBox)(target)); #line 131 "..\..\GiveProducts.xaml" this.SearchBox_Model.DropDownClosed += new System.EventHandler(this.SearchBox_Model_DropDownClosed); #line default #line hidden return; case 18: this.CheckboxCar = ((System.Windows.Controls.CheckBox)(target)); #line 136 "..\..\GiveProducts.xaml" this.CheckboxCar.Checked += new System.Windows.RoutedEventHandler(this.CheckboxCar_Checked_change); #line default #line hidden #line 136 "..\..\GiveProducts.xaml" this.CheckboxCar.Unchecked += new System.Windows.RoutedEventHandler(this.CheckboxCar_Unchecked); #line default #line hidden return; case 19: this.DataGrid_1 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 141 "..\..\GiveProducts.xaml" this.DataGrid_1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.DataGrid_1_MouseDoubleClick); #line default #line hidden #line 141 "..\..\GiveProducts.xaml" this.DataGrid_1.MouseEnter += new System.Windows.Input.MouseEventHandler(this.DataGrid_1_MouseEnter); #line default #line hidden return; case 20: #line 159 "..\..\GiveProducts.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Delete_Click); #line default #line hidden return; case 21: #line 160 "..\..\GiveProducts.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Update_Click); #line default #line hidden return; case 22: #line 161 "..\..\GiveProducts.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 23: this.checkBoxPhoto = ((System.Windows.Controls.CheckBox)(target)); #line 162 "..\..\GiveProducts.xaml" this.checkBoxPhoto.Checked += new System.Windows.RoutedEventHandler(this.CheckBox_Checked); #line default #line hidden #line 162 "..\..\GiveProducts.xaml" this.checkBoxPhoto.Unchecked += new System.Windows.RoutedEventHandler(this.CheckBox_Unchecked); #line default #line hidden return; case 24: this.UpdateItemWindow = ((Xceed.Wpf.Toolkit.ChildWindow)(target)); return; case 25: this.LocalTest = ((ShopManager.UpdateProduct)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.musicGroupName = ((System.Windows.Controls.TextBox)(target)); #line 40 "..\..\AddWindow.xaml" this.musicGroupName.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 2: this.musicGroupNationality = ((System.Windows.Controls.TextBox)(target)); #line 42 "..\..\AddWindow.xaml" this.musicGroupNationality.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 3: this.musicGroupTypeOfMusic = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.musicGroupStartedDate = ((System.Windows.Controls.DatePicker)(target)); #line 47 "..\..\AddWindow.xaml" this.musicGroupStartedDate.KeyDown += new System.Windows.Input.KeyEventHandler(this.textDate_KeyDown); #line default #line hidden return; case 5: this.musicGroupEndedDate = ((System.Windows.Controls.DatePicker)(target)); #line 49 "..\..\AddWindow.xaml" this.musicGroupEndedDate.KeyDown += new System.Windows.Input.KeyEventHandler(this.textDate_KeyDown); #line default #line hidden return; case 6: #line 53 "..\..\AddWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.buttonImage_onClick); #line default #line hidden return; case 7: this.profileImage = ((System.Windows.Controls.Image)(target)); return; case 8: this.addSinger = ((System.Windows.Controls.Button)(target)); #line 75 "..\..\AddWindow.xaml" this.addSinger.Click += new System.Windows.RoutedEventHandler(this.addSinger_onClick); #line default #line hidden return; case 9: this.deleteSinger = ((System.Windows.Controls.Button)(target)); #line 84 "..\..\AddWindow.xaml" this.deleteSinger.Click += new System.Windows.RoutedEventHandler(this.deleteMusician_onClick); #line default #line hidden return; case 10: this.MusicianGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 11: this.addSong = ((System.Windows.Controls.Button)(target)); #line 145 "..\..\AddWindow.xaml" this.addSong.Click += new System.Windows.RoutedEventHandler(this.addSong_onClick); #line default #line hidden return; case 12: this.deleteSong = ((System.Windows.Controls.Button)(target)); #line 154 "..\..\AddWindow.xaml" this.deleteSong.Click += new System.Windows.RoutedEventHandler(this.deleteSong_onClick); #line default #line hidden return; case 13: this.SongGrid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 14: this.MusicianWindow = ((Xceed.Wpf.Toolkit.ChildWindow)(target)); return; case 15: this.musicianName = ((System.Windows.Controls.TextBox)(target)); #line 210 "..\..\AddWindow.xaml" this.musicianName.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 16: this.musicianSurname = ((System.Windows.Controls.TextBox)(target)); #line 212 "..\..\AddWindow.xaml" this.musicianSurname.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 17: this.musicianNationality = ((System.Windows.Controls.TextBox)(target)); #line 214 "..\..\AddWindow.xaml" this.musicianNationality.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 18: this.musicianSex = ((System.Windows.Controls.TextBox)(target)); #line 216 "..\..\AddWindow.xaml" this.musicianSex.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 19: this.musicianDateOfBirth = ((System.Windows.Controls.DatePicker)(target)); return; case 20: this.musicianInstrument = ((System.Windows.Controls.TextBox)(target)); #line 220 "..\..\AddWindow.xaml" this.musicianInstrument.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 21: #line 223 "..\..\AddWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddMusician); #line default #line hidden return; case 22: this.SongWindow = ((Xceed.Wpf.Toolkit.ChildWindow)(target)); return; case 23: this.songName = ((System.Windows.Controls.TextBox)(target)); #line 245 "..\..\AddWindow.xaml" this.songName.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 24: this.songTypeOfMusic = ((System.Windows.Controls.ComboBox)(target)); return; case 25: this.songLength = ((System.Windows.Controls.TextBox)(target)); #line 250 "..\..\AddWindow.xaml" this.songLength.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 26: this.songWriter = ((System.Windows.Controls.TextBox)(target)); #line 252 "..\..\AddWindow.xaml" this.songWriter.KeyDown += new System.Windows.Input.KeyEventHandler(this.textString_KeyDown); #line default #line hidden return; case 27: this.songReleased = ((System.Windows.Controls.DatePicker)(target)); return; case 28: #line 257 "..\..\AddWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddSong); #line default #line hidden return; case 29: #line 264 "..\..\AddWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddMusicGroup); #line default #line hidden return; } this._contentLoaded = true; }
private void ProcessDrag(DataGridControl lvSource, DataGridControl lvDest, GetPositionDelegate mousePoint) { sourceIndex = this.GetCurrentIndex(mousePoint, lvSource); curSource = lvSource; if (sourceIndex < 0) return; lvSource.SelectedIndex = sourceIndex; selectedItem = lvSource.Items[sourceIndex] as IqReportColumn; if (selectedItem == null) return; // this will create the drag "rectangle" DragDropEffects allowedEffects = DragDropEffects.Move; if (DragDrop.DoDragDrop(lvSource, selectedItem, allowedEffects) != DragDropEffects.None) { // The item was dropped into a new location, // so make it the new selected item. lvDest.SelectedItem = selectedItem; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 13 "..\..\..\..\..\bin\Common\UserControls\ShowProcessFile.xaml" ((System.Windows.Controls.TextBlock)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseDown); #line default #line hidden return; case 2: this.GridDetails = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 19 "..\..\..\..\..\bin\Common\UserControls\ShowProcessFile.xaml" this.GridDetails.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.GridDetails_MouseDoubleClick); #line default #line hidden return; case 3: this.tbView = ((Xceed.Wpf.DataGrid.Views.TableView)(target)); return; } this._contentLoaded = true; }
private void ProcessDrop(DataGridControl lvDest, GetPositionDelegate mousePoint) { if (curSource == lvDest) return; if (sourceIndex < 0) return; int index = this.GetCurrentIndex(mousePoint, lvDest); if (index < 0) index = 0; //return; ((IList<IqReportColumn>)curSource.Items.SourceCollection).Remove(selectedItem); if (curSource.Name == "lvDest") //Remueve de los seleccionados cambia el visible a false RemoveFromSelected(this, new DataEventArgs<IqReportColumn>(selectedItem)); //Destination Operation if (((IList<IqReportColumn>)lvDest.Items.SourceCollection).Where(f => f.ReportColumnId == selectedItem.ReportColumnId).Count() == 0) { //Add Trask By User if (lvDest.Name == "lvDest") AddToSelected(this, new DataEventArgs<IqReportColumn>(selectedItem)); ((IList<IqReportColumn>)lvDest.Items.SourceCollection).Insert(index, selectedItem); } lvDest.Items.Refresh(); curSource.Items.Refresh(); }
/// <summary> /// Builds collectionSource ItemPorperties collection and collection of xceedGrid columns. /// </summary> /// <param name="collectionSource"></param> /// <param name="xceedControl"></param> public void BuildGridStructure(DataGridCollectionViewSource collectionSource, DataGridControl xceedGrid) { _BuildCollectionSource(collectionSource.ItemProperties); _BuildColumnsCollection(xceedGrid.Columns); _InitPrintConfiguration(xceedGrid); }
Row GetListViewItem(int index, DataGridControl lvObject) { //if (lvObject.ItemContainerGenerator.Status != GeneratorStatus.ContainersGenerated) // return null; //return lvObject.ItemContainerGenerator.ContainerFromIndex(index) as ListViewItem; return lvObject.GetContainerFromIndex(index) as Row; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.checkMe = ((System.Windows.Controls.CheckBox)(target)); return; case 2: this.textBoxSearch = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.textBoxPeopleSearch = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.tabs = ((System.Windows.Controls.TabControl)(target)); return; case 5: this.image = ((System.Windows.Controls.Image)(target)); return; case 6: this.Grid = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 7: this.colStartDate = ((Xceed.Wpf.DataGrid.Column)(target)); return; case 8: this.colEndDate = ((Xceed.Wpf.DataGrid.Column)(target)); return; case 9: this.colDaysOpen = ((Xceed.Wpf.DataGrid.Column)(target)); return; case 10: this.colValue = ((Xceed.Wpf.DataGrid.Column)(target)); return; case 11: this.editPanel = ((System.Windows.Controls.ContentControl)(target)); return; case 12: this.butAddProject = ((System.Windows.Controls.Button)(target)); return; case 13: this.ButtonShowHide = ((System.Windows.Controls.Button)(target)); #line 499 "..\..\..\Views\MainView.xaml" this.ButtonShowHide.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
// returns the index of the item in the ListView int GetCurrentIndex(GetPositionDelegate getPosition, DataGridControl lvObject) { int index = -1; for (int i = 0; i < lvObject.Items.Count; ++i) { Row item = GetListViewItem(i, lvObject); if (item != null && this.IsMouseOverTarget(item, getPosition)) { index = i; break; } } return index; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\..\Objs\Controles\us_ConsultaDependientes_NotificacionExclucion.xaml" ((SIC.Objs.Controles.us_ConsultaDependientes_NotificacionExclucion)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.UserControl_Unloaded); #line default #line hidden #line 9 "..\..\..\..\Objs\Controles\us_ConsultaDependientes_NotificacionExclucion.xaml" ((SIC.Objs.Controles.us_ConsultaDependientes_NotificacionExclucion)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.datagrid1 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 3: this.But_Exclucion = ((System.Windows.Controls.Button)(target)); #line 134 "..\..\..\..\Objs\Controles\us_ConsultaDependientes_NotificacionExclucion.xaml" this.But_Exclucion.Click += new System.Windows.RoutedEventHandler(this.But_Exclucion_Click_1); #line default #line hidden return; case 4: this.But_Refresh = ((System.Windows.Controls.Button)(target)); #line 143 "..\..\..\..\Objs\Controles\us_ConsultaDependientes_NotificacionExclucion.xaml" this.But_Refresh.Click += new System.Windows.RoutedEventHandler(this.But_Refresh_Click); #line default #line hidden return; case 5: this.But_Editar = ((System.Windows.Controls.Button)(target)); #line 151 "..\..\..\..\Objs\Controles\us_ConsultaDependientes_NotificacionExclucion.xaml" this.But_Editar.Click += new System.Windows.RoutedEventHandler(this.But_Editar_Click); #line default #line hidden return; case 6: this.Txt_Familiares = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Direccion_Solicitante = ((System.Windows.Controls.Grid)(target)); return; case 2: this.border_Copy7 = ((System.Windows.Controls.Border)(target)); return; case 3: this.datagrid1 = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 4: this.But_Agregar = ((System.Windows.Controls.Button)(target)); #line 67 "..\..\..\..\..\Objs\Controles\Visitas\us_CitasMotivos.xaml" this.But_Agregar.Click += new System.Windows.RoutedEventHandler(this.But_Agregar_Click); #line default #line hidden return; case 5: this.But_Buscar_Copy = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CustomProcessRoute = ((WpfFront.Views.CustomProcessRouteView)(target)); return; case 2: this.stkSearchForm = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.dgSearch = ((System.Windows.Controls.Grid)(target)); return; case 4: this.txtSearch = ((System.Windows.Controls.TextBox)(target)); #line 47 "..\..\..\..\Process\View\CustomProcessRouteView.xaml" this.txtSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtSearch_TextChanged); #line default #line hidden return; case 5: this.btnNew = ((System.Windows.Controls.Button)(target)); #line 48 "..\..\..\..\Process\View\CustomProcessRouteView.xaml" this.btnNew.Click += new System.Windows.RoutedEventHandler(this.btnNew_Click); #line default #line hidden return; case 6: this.dgList = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); #line 63 "..\..\..\..\Process\View\CustomProcessRouteView.xaml" this.dgList.GotFocus += new System.Windows.RoutedEventHandler(this.dgList_GotFocus); #line default #line hidden return; case 7: this.stkEdit = ((System.Windows.Controls.StackPanel)(target)); return; case 8: this.frmNotification = ((Core.WPF.FormNotification)(target)); return; case 9: this.dgEdit = ((System.Windows.Controls.Grid)(target)); return; case 10: this.btnSave = ((System.Windows.Controls.Button)(target)); #line 200 "..\..\..\..\Process\View\CustomProcessRouteView.xaml" this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click); #line default #line hidden return; case 11: this.btnDelete = ((System.Windows.Controls.Button)(target)); #line 208 "..\..\..\..\Process\View\CustomProcessRouteView.xaml" this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_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 = ((Safire.Library.LibraryControl)(target)); #line 18 "..\..\..\Library\Library.xaml" this.UserControl.SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged); #line default #line hidden return; case 4: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 5: this.Tabs = ((MahApps.Metro.Controls.MetroTabControl)(target)); #line 122 "..\..\..\Library\Library.xaml" this.Tabs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabSelectionChanged); #line default #line hidden return; case 6: this.noresults = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.tracklist = ((Xceed.Wpf.DataGrid.DataGridControl)(target)); return; case 8: #line 142 "..\..\..\Library\Library.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuPlaySong); #line default #line hidden return; case 9: #line 147 "..\..\..\Library\Library.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuShowInformation); #line default #line hidden return; case 10: #line 152 "..\..\..\Library\Library.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuShowInFolder); #line default #line hidden return; case 11: #line 158 "..\..\..\Library\Library.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuRemoveFromLibrary); #line default #line hidden return; case 12: #line 163 "..\..\..\Library\Library.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuDeleteFile); #line default #line hidden return; case 13: this.artistList = ((Safire.Library.ArtistList)(target)); return; case 14: this.albumLst = ((Safire.Library.AlbumList)(target)); return; case 15: this.genreLst = ((Safire.Library.GenreList)(target)); return; case 16: this.grdDD = ((System.Windows.Controls.Grid)(target)); return; case 17: this.Container = ((System.Windows.Controls.Grid)(target)); return; case 18: this.plugTree = ((System.Windows.Controls.TreeView)(target)); return; } this._contentLoaded = true; }