Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnAddProduct = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.btnAddProduct.Click += new System.Windows.RoutedEventHandler(this.BtnAddProduct_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.ListViewEditProducts = ((System.Windows.Controls.ListView)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.ListViewEditProducts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewEditProducts_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.grdVBarodeCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.menuOpen = ((System.Windows.Controls.MenuItem)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.menuOpen.Click += new System.Windows.RoutedEventHandler(this.MenuOpen_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.menuSave = ((System.Windows.Controls.MenuItem)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.menuSave.Click += new System.Windows.RoutedEventHandler(this.MenuSave_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.menuExit = ((System.Windows.Controls.MenuItem)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.menuExit.Click += new System.Windows.RoutedEventHandler(this.MenuExit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        public TabularDataViewer(IBioLinkReport report, DataMatrix data, IProgressObserver progress)
        {
            InitializeComponent();
            this.Data = data;
            _progress = progress;
            _report = report;
            var view = new GridView();

            var columns = report.DisplayColumns;
            if (columns == null || columns.Count == 0) {
                columns = GenerateDefaultColumns(data);
            }

            var hcs = viewerGrid.Resources["hcs"] as Style;

            foreach (DisplayColumnDefinition c in columns) {
                DisplayColumnDefinition coldef = c;
                var column = new GridViewColumn { Header = BuildColumnHeader(coldef), DisplayMemberBinding = new Binding(String.Format("[{0}]", data.IndexOf(coldef.ColumnName))), HeaderContainerStyle = hcs };
                view.Columns.Add(column);
            }

            lvw.AddHandler(ButtonBase.ClickEvent, new RoutedEventHandler(GridViewColumnHeaderClickedHandler));

            lvw.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(lvw_MouseRightButtonUp);

            lvw.ItemsSource = Data.Rows;
            this.lvw.View = view;
        }
Exemple #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ucbooking = ((QLBX.FormChucNang.UCBooking)(target));
                return;

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

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

            case 4:
                this.listchuyen = ((System.Windows.Controls.ListView)(target));
                return;

            case 5:
                this.feil1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public Fenetre_Classement()
        {
            InitializeComponent();

            CT_Get_Classement CT = new CT_Get_Classement();
            
            Joueur[] classement = (Joueur[])CT.Exec(new Message()).Data[0];

            GridView view = new GridView();

            GridViewColumn col1 = new GridViewColumn();
            col1.Header = "Nom";
            col1.DisplayMemberBinding = new Binding("Nom");
            view.Columns.Add(col1);

            GridViewColumn col2 = new GridViewColumn();
            col2.Header = "Score";
            col2.DisplayMemberBinding = new Binding("Score");
            view.Columns.Add(col2);

            view.AllowsColumnReorder = false;
            this.ClassementListView.View = view;

            foreach (Joueur j in classement)
            {
                this.ClassementListView.Items.Add(new Item(j.Nom, j.Score));
            }
        }
Exemple #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\PaymentsPage.xaml"
                ((BancaApp.PaymentsPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.platiListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.codPlataColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.descriereColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.sumaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.dataColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void GenerateMetaColumns()
        {
            while (_gridView.Columns.Count > 1)
            {
                _gridView.Columns.RemoveAt(1);
            }

            // dynamically generate columns for meta data 
            var container = theView.DataContext as ContainerVM;
            if (container != null)
            {

                foreach (var info in container.KnownMetaData)
                {
                    GridViewColumn col = new GridViewColumn
                    {
                        Header = info.Name,
                        HeaderContainerStyle = TryFindResource(string.Format("{0}AlignColHeader", info.HeaderAlignment)) as Style,
                        Width = info.Width,
                    };
                    var txt = new FrameworkElementFactory(typeof(TextBlock));
                    txt.SetBinding(TextBlock.TextProperty, new Binding(string.Format("MetaData[{0}].Value", info.Name)) { Converter = info.Formatter, ConverterParameter = info.FormatParameter });
                    txt.SetValue(TextBlock.TextTrimmingProperty, TextTrimming.CharacterEllipsis);
                    txt.SetValue(TextBlock.TextAlignmentProperty, info.ContentAlignment);
                    col.CellTemplate = new DataTemplate() { VisualTree = txt };

                    _gridView.Columns.Add(col);
                }
            }
        }
        public ViewSource(string filePath)
        {
            InitializeComponent();
            if (string.IsNullOrEmpty(filePath))
            { MessageBox.Show("请先选择文件");
              return;
            }
            this.Title = filePath + "的内容";
            FilePath=filePath;
            CSVHelper helper = new CSVHelper(FilePath,'\t');
            DataTable dt = helper.CsVTable;
             listView.DataContext = dt; 
             sourceGridView.Columns.Clear();

             foreach (var colum in dt.Columns)
             {
                 DataColumn dc = (DataColumn)colum;
                 GridViewColumn column = new GridViewColumn();
                 column.DisplayMemberBinding = new Binding(dc.ColumnName);
                 column.Header = dc.ColumnName;
                 sourceGridView.Columns.Add(column);
             }
             Binding bind = new Binding();
             listView.SetBinding(ListView.ItemsSourceProperty, bind);             
        }
Exemple #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.doInfoList = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.c1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.c2 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.c3 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.c4 = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public GridViewColumnWrapper(
			GridViewTable gridViewTable)
        {
            ID = Guid.NewGuid().ToString();
            _gridViewTable = gridViewTable;

            // HACK (ListView)
            var xaml = string.Format(@"
            <DataTemplate
            xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""
            xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
            xmlns:Legend=""clr-namespace:TechNewLogic.GraphIT.Hv.Legend;assembly=TechNewLogic.GraphIT"">
            <Legend:TableCellControl
            CellBackground=""{{Binding DynamicRulerValues[{0}].Background}}""
            Text=""{{Binding DynamicRulerValues[{0}].Value}}"" />
            </DataTemplate>",
                ID);

            var stringReader = new StringReader(xaml);
            var xmlReader = XmlReader.Create(stringReader);
            var template = (DataTemplate)XamlReader.Load(xmlReader);

            GridViewColumn = new GridViewColumn
                {
                    CellTemplate = template,
                };
        }
        public override void RestoreLayout(XmlElement contentElement)
        {
            base.RestoreLayout(contentElement);
           
            if (_errorList == null)
                return;

            GridView gridView = _errorList.View as GridView;

            if (gridView == null)
                return;

            
            GridViewColumn[] cols = new GridViewColumn[gridView.Columns.Count];
            gridView.Columns.CopyTo(cols, 0);
            gridView.Columns.Clear();

            foreach (XmlElement columnElement in contentElement.ChildNodes)
            {
                foreach (GridViewColumn col in cols)
                {
                    if (col.Header.ToString() == columnElement.GetAttribute("Header"))
                    {
                        col.Width = XmlConvert.ToDouble(columnElement.GetAttribute("Width"));
                        gridView.Columns.Add(col);
                        break;
                    }
                }
            }
        }
Exemple #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProfStList = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.Student = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 4:

            #line 61 "..\..\ProffesorSuccess.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.FnFilter_Click);

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

            case 2:
                this.MASACH = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.TENSACH = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.MALOAISACH = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.TACGIA = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.NAMSANXUAT = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     var config = value as ColumnConfig;
     if (config != null)
     {
         var gridView = new GridView();
         gridView.ColumnHeaderContainerStyle = Application.Current.FindResource("HeaderContainerStyle") as Style;
         gridView.ColumnHeaderTemplate = Application.Current.FindResource("HeaderTemplate") as DataTemplate;
         if (config.Columns != null)
         {
             foreach (var column in config.Columns)
             {
                 var bindingDisplayMember = new Binding(column.DataField);
                 if (IsStripMultiLinesInList)
                     bindingDisplayMember.Converter = stripMultiLineConverter;
                 GridViewColumn gvc = new GridViewColumn { Header = column, DisplayMemberBinding = bindingDisplayMember };
                 var bindingWidth = new Binding("IsVisible");
                 bindingWidth.Source = column;
                 bindingWidth.Converter = this.columnIsVisibleToWidthConverter;
                 BindingOperations.SetBinding(gvc, GridViewColumn.WidthProperty, bindingWidth);
                 gvc.SetValue(GridViewSort.PropertyNameProperty, bindingDisplayMember.Path.Path);
                 gridView.Columns.Add(gvc);
             }
         }
         return gridView;
     }
     return Binding.DoNothing;
 }
        private void UserControl_Loaded(object sender, RoutedEventArgs e) {
            if (!IsPreferenceVisible)
                ListGridView.Columns.Remove(PreferenceColumn);
            if (!IsIntensityVisible)
                ListGridView.Columns.Remove(IntensityColumn);
            if (!IsCustomVisible)
                ListGridView.Columns.Remove(CustomColumn);
            if (!AllowMultiSelect)
                ListGridView.Columns.Remove(SelectionColumn);
            if (!IsStatusVisible)
                ListGridView.Columns.Remove(StatusColumn);
            VideosView.SelectionMode = AllowMultiSelect ? SelectionMode.Multiple : SelectionMode.Single;

            // Grid column width does not include zoom.
            double ColWidth = ListGridView.Columns.Where(c => c != TitleColumn).Sum(c => c.ActualWidth);
            TitleColumn.Width = (this.ActualWidth / Business.Settings.Zoom) - ColWidth - 28 * Business.Settings.Zoom;

            if (DesignerProperties.GetIsInDesignMode(this))
                return;

            lastHeaderClicked = ((GridView)VideosView.View).Columns[0];
            Window.GetWindow(this).Closed += MediaGrid_Closed;

            if (IsolatedPlayer) {
                player = SessionCore.Instance.GetNewPlayer();
                player.SetPath();
                player.AllowClose = true;
            }

            // Bind PreviewKeyDown to every TextBox on the page.
            foreach (TextBox item in Window.GetWindow(this).FindVisualChildren<TextBox>()) {
                item.PreviewKeyDown += SearchTextControl_PreviewKeyDown;
            }
        }
Exemple #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((WpfApplication2.MainWindow)(target));

            #line 5 "..\..\MainWindow.xaml"
                this.root.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.transactionsDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 3:
                this.amountColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 4:
                this.dateColumn = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 5:
                this.payeeColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 6:
                this.tagColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

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

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

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

            case 10:
                this.tagTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.nameColumn1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 12:
                this.instColumn1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void ViewPage(int page, int num)
        {
            DrawingsDataContext dc = DBCommon.NewDC;

            IQueryable<Drawing> res = (from d in dc.Drawings select d).Skip((page - 1)*num).Take(num);

            // Create the GridView
            var gv = new GridView();
            gv.AllowsColumnReorder = true;

            // Create the GridView Columns
            PropertyInfo[] pi = typeof (MPDrawing).GetProperties();


            foreach (PropertyInfo p in pi)
            {
                var gvc = new GridViewColumn();
                gvc.DisplayMemberBinding = new Binding(p.Name);
                gvc.Header = p.Name;
                gvc.Width = Double.NaN;
                gv.Columns.Add(gvc);
            }

            listView1.View = gv;
            listView1.ItemsSource = res;
        }
        public XDataSearchResultHeader()
        {
            GridViewColumn column = new GridViewColumn() ;
            column.DisplayMemberBinding = new Binding( "jid" ) ;
            column.Header = Resources.Constant_Jid ;
            Columns.Add( column ) ;

            column = new GridViewColumn() ;
            column.DisplayMemberBinding = new Binding( "first" ) ;
            column.Header = Resources.Constant_FirstName ;
            Columns.Add( column ) ;

            column = new GridViewColumn() ;
            column.DisplayMemberBinding = new Binding( "last" ) ;
            column.Header = Resources.Constant_LastName ;
            Columns.Add( column ) ;

            column = new GridViewColumn() ;
            column.DisplayMemberBinding = new Binding( "nick" ) ;
            column.Header = Resources.Constant_Nickname ;
            Columns.Add( column ) ;

            column = new GridViewColumn() ;
            column.DisplayMemberBinding = new Binding( "email" ) ;
            column.Header = Resources.Constant_Email ;
            Columns.Add( column ) ;
        }
		void ChangeIsDeleted()
		{
			if (_deletationType == LogicalDeletationType.All)
			{
				if (!IsColumnShown)
				{
					var gridViewColumn = new GridViewColumn();
					gridViewColumn.Header = "Дата удаления";
					gridViewColumn.Width = 150;
					var dataTemplate = new DataTemplate();
					var txtElement = new FrameworkElementFactory(typeof(IsDeletedTextBlock));
					dataTemplate.VisualTree = txtElement;
					var binding = new Binding();
					var bindingPath = string.Format("RemovalDate");
					binding.Path = new PropertyPath(bindingPath);
					binding.Mode = BindingMode.OneWay;
					txtElement.SetBinding(IsDeletedTextBlock.TextProperty, binding);
					gridViewColumn.CellTemplate = dataTemplate;
					ListViewLayoutManager.SetCanUserResize(gridViewColumn, false);
					gridView.Columns.Add(gridViewColumn);
				}
			}
			else if (IsColumnShown)
			{
				gridView.Columns.Remove(IsDeletedColumn);
			}
		}
 private void AddStyleColumn(FontStyleData fontStyle, GridView gridView)
 {
     DataTemplate dataTemplate = (DataTemplate) XamlReader.Parse(string.Format(DATA_TEMPLATE_TEMPLATE, fontStyle.FontWeight, fontStyle.FontStyle, fontStyle.FontSize, fontStyle.TextDecoration));
     GridViewColumn column = new GridViewColumn() { Header = fontStyle.Name };
     column.CellTemplate = dataTemplate;
     gridView.Columns.Add(column);
 }
Exemple #20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.imgBack = ((System.Windows.Controls.Image)(target));

            #line 32 "..\..\..\..\..\Views\LibraryList\AddConstellation\AddActor.xaml"
                this.imgBack.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.imgBack_MouseUp);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\..\..\..\Views\LibraryList\AddConstellation\AddActor.xaml"
                this.imgNext.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgNext_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

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

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

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

            case 7:
                this.listView = ((System.Windows.Controls.ListView)(target));
                return;

            case 9:
                this.colName = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            #line 109 "..\..\..\..\..\Views\LibraryList\AddConstellation\AddActor.xaml"
                this.image.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.image_MouseLeftButtonUp);

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

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

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

            case 4:
                this.listchuyen = ((System.Windows.Controls.ListView)(target));

            #line 57 "..\..\..\FormChucNang\UCBooking.xaml"
                this.listchuyen.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listchuyen_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.feil1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public void SetAlarmList()
        {
            GridView gridView = new GridView();
            GridViewColumn column = new GridViewColumn();
            column.Header = "ALARM NO";
            column.Width = double.NaN;
            column.DisplayMemberBinding = new System.Windows.Data.Binding("AlarmNo");
            gridView.Columns.Add(column);

            column = new GridViewColumn();
            column.Header = "NAME";
            column.Width = double.NaN;
            column.DisplayMemberBinding = new System.Windows.Data.Binding("AlarmName");
            gridView.Columns.Add(column);

            //column = new GridViewColumn();
            //column.Header = "DESCRIPTION";
            //column.Width = double.NaN;
            //column.DisplayMemberBinding = new System.Windows.Data.Binding("Description");
            //gridView.Columns.Add(column);

            column = new GridViewColumn();
            column.Header = "SOLUTION";
            column.Width = double.NaN;
            column.DisplayMemberBinding = new System.Windows.Data.Binding("Solution");
            gridView.Columns.Add(column);

            listViewAlarmList.View = gridView;

            listViewAlarmList.FontFamily = new FontFamily("Tahoma");
            listViewAlarmList.FontSize = 16;
            listViewAlarmList.FontWeight = FontWeights.Bold;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MADG = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 2:
                this.TEN = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.GIOITINH = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.CMND = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.DIACHI = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.SODT = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.NGAYSINH = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.txtBxIntitule = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 4:
                this.lstVwListeTaches = ((System.Windows.Controls.ListView)(target));
                return;

            case 5:
                this.clmnIntitule = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.clmnDuree = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.clmnStatut = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.doInfoList = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.c1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.c2 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.c3 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.c4 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:

            #line 36 "..\..\..\observe\index.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.TaskInfoAdd);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        public ListSystemParameters()
        {
            Title = "List System Parameters";

            ListView lstvue = new ListView();
            Content = lstvue;

            GridView grdvue = new GridView();
            lstvue.View = grdvue;

            GridViewColumn col = new GridViewColumn();
            col.Header = "Property Name";
            col.Width = 200;
            col.DisplayMemberBinding = new Binding("Name");
            grdvue.Columns.Add(col);

            col = new GridViewColumn();
            col.Header = "Value";
            col.Width = 200;
            col.DisplayMemberBinding = new Binding("Value");
            grdvue.Columns.Add(col);

            PropertyInfo[] props = typeof(SystemParameters).GetProperties();
            foreach (PropertyInfo prop in props)
            {
                if (prop.PropertyType != typeof(ResourceKey))
                {
                    SystemParam sysparam = new SystemParam();
                    sysparam.Name = prop.Name;
                    sysparam.Value = prop.GetValue(null, null);
                    lstvue.Items.Add(sysparam);
                }
            }
        }
        private GridView GetGridView(List<dynamic> list)
        {
            GridView gridView = new GridView();

            int i = 0;
            foreach (dynamic item in list)
            {
                GridViewColumn col = new GridViewColumn();
                col.Header = item.Name;
                if (item.Type == "System.Boolean")
                {
                    System.Windows.DataTemplate template = new System.Windows.DataTemplate();
                    System.Windows.FrameworkElementFactory checkBox =
                        new System.Windows.FrameworkElementFactory(typeof(CheckBox));
                    checkBox.SetValue(CheckBox.VerticalAlignmentProperty, System.Windows.VerticalAlignment.Center);
                    Binding bd = new Binding("[" + i.ToString() + "].Value");
                    bd.Mode = BindingMode.OneTime;

                    checkBox.SetBinding(CheckBox.IsCheckedProperty, bd);
                    template.VisualTree = checkBox;
                    col.CellTemplate = template;
                }
                else
                {
                    col.DisplayMemberBinding = new System.Windows.Data.Binding("[" + i.ToString() + "].Value");
                }

                gridView.Columns.Add(col);
                i++;
            }

            return gridView;
        }
Exemple #28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.datagridview = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.view = ((System.Windows.Controls.GridView)(target));
                return;

            case 3:
                this.id = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.nom = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.elem = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.caract = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AllProductsList = ((System.Windows.Controls.ListView)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.AllProductsList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.AllProductsList_SelectionChanged);

            #line default
            #line hidden

            #line 10 "..\..\MainWindow.xaml"
                this.AllProductsList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.AllProductsList_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 2:
                this.IdColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.NameColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #30
0
 private void initGridMusic()
 {
     gridMusic.AllowsColumnReorder = true;
     gridMusic.ColumnHeaderToolTip = "Music information";
     GridViewColumn AlbumColumn = new GridViewColumn();
     AlbumColumn.DisplayMemberBinding = new Binding("album");
     AlbumColumn.Header = "Album";
     AlbumColumn.Width = 150;
     gridMusic.Columns.Add(AlbumColumn);
     GridViewColumn TitleColumn = new GridViewColumn();
     TitleColumn.DisplayMemberBinding = new Binding("title");
     TitleColumn.Header = "Title";
     TitleColumn.Width = 150;
     gridMusic.Columns.Add(TitleColumn);
     GridViewColumn GenreColumn = new GridViewColumn();
     GenreColumn.DisplayMemberBinding = new Binding("genre");
     GenreColumn.Header = "Genre";
     GenreColumn.Width = 100;
     gridMusic.Columns.Add(GenreColumn);
     GridViewColumn LengthColumn = new GridViewColumn();
     LengthColumn.DisplayMemberBinding = new Binding("length");
     LengthColumn.Header = "Length";
     LengthColumn.Width = 57;
     gridMusic.Columns.Add(LengthColumn);
     GridViewColumn ArtistColumn = new GridViewColumn();
     ArtistColumn.DisplayMemberBinding = new Binding("artist");
     ArtistColumn.Header = "Artist";
     ArtistColumn.Width = 150;
     gridMusic.Columns.Add(ArtistColumn);
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lvEmployees = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.lvEmployees_c1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.lvEmployees_c2 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.lvEmployees_c3 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            #line 20 "..\..\StudyListView.xaml"
                this.btnGetData.Click += new System.Windows.RoutedEventHandler(this.buttonGetData_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #32
0
		void UpdateAdditionalColumns()
		{
			GridView gridView = _treeList.View as GridView;
			EmployeesViewModel employeesViewModel = _treeList.DataContext as EmployeesViewModel;
			if (employeesViewModel.AdditionalColumnNames == null)
				return;

			var columnCount = 2;
			for (int i = gridView.Columns.Count - 1; i >= columnCount; i--)
			{
				gridView.Columns.RemoveAt(i);
			}

			for (int i = 0; i < employeesViewModel.AdditionalColumnNames.Count; i++)
			{
				var gridViewColumn = new GridViewColumn();
				gridViewColumn.Header = employeesViewModel.AdditionalColumnNames[i];
				gridViewColumn.Width = 350;

				var dataTemplate = new DataTemplate();
				var txtElement = new FrameworkElementFactory(typeof(TextBlock));
				dataTemplate.VisualTree = txtElement;
				var binding = new Binding();
				var bindingPath = string.Format("AdditionalColumnValues[{0}]", i);
				binding.Path = new PropertyPath(bindingPath);
				binding.Mode = BindingMode.OneWay;
				txtElement.SetBinding(TextBlock.TextProperty, binding);
				ListViewLayoutManager.SetStarWidth(gridViewColumn, 5);
				gridViewColumn.CellTemplate = dataTemplate;
				gridView.Columns.Add(gridViewColumn);
			}
		}
Exemple #33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 30 "..\..\..\..\View\MainWindow.xaml"
                ((System.Windows.Controls.ToolBar)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ToolBar_Loaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 74 "..\..\..\..\View\MainWindow.xaml"
                ((System.Windows.Controls.ToolBar)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ToolBar_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this.borderImage = ((N3Imager.View.ZoomBorder)(target));
                return;

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

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

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

            case 7:
                this.CanvasResult = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 9:
                this.helperField = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.helperField2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.pgBar = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public void AllAncestorsTest()
 {
     var gridView = new GridView();
     var gridViewColumn = new GridViewColumn();
     gridView.Columns.Add(gridViewColumn);
     Assert.AreEqual(gridView, gridViewColumn.AllAncestors().First()); 
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.typeNameHeaderBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 2:
                this.listView = ((System.Windows.Controls.ListView)(target));
                return;

            case 4:
                this.columnExpander = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.columnMemberIcon = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 9:
                this.columnText = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.filmListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.filmIDColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.titleColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.descriptionColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.lengthColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #37
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\pages\ViewSchedule.xaml"
                ((Clinic.ViewSchedule)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.doctor_scheduleListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.patient_NameColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.patientIdColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.startColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.endColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            GridView myGridView = new GridView();
            myGridView.AllowsColumnReorder = true;

            //Collapse the header
            Style collapsedHeaderStyle = new Style();
            Setter collapsedHeaderSetter = new Setter();

            collapsedHeaderSetter.Property = VisibilityProperty;
            collapsedHeaderSetter.Value = Visibility.Collapsed;
            collapsedHeaderStyle.Setters.Add(collapsedHeaderSetter);

            myGridView.ColumnHeaderContainerStyle = collapsedHeaderStyle;

            for (int i = 0; i < control.XSize; i++)
            {
                GridViewColumn col = new GridViewColumn();
                col.DisplayMemberBinding = new Binding("Column[" + i.ToString() + "]");
                col.Width = 30;
                myGridView.Columns.Add(col);
            }

            listView.View = myGridView;
            listView.DataContext = control.AgentCollection;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProductCardWindow = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.ChildListView = ((System.Windows.Controls.ListView)(target));

            #line 14 "..\..\ProductCardWindow.xaml"
                this.ChildListView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ChildListView_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 3:
                this.IdColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.NameColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #40
0
 private void initGridAlbum()
 {
     gridAlbum.ColumnHeaderToolTip = "Album information";
     GridViewColumn AlbumColumn = new GridViewColumn();
     AlbumColumn.Header = "Album";
     AlbumColumn.Width = 350;
     gridAlbum.Columns.Add(AlbumColumn);
 }
 public void OneStarSizedTest()
 {
     var view = new GridView();
     var lw = new ListView();
     var gvc = new GridViewColumn();
     lw.View = view;
     var dependencyObjects = view.LogicalAncestors().ToArray();
 }
Exemple #42
0
 private void initGridArtist()
 {
     gridArtist.ColumnHeaderToolTip = "Artist information";
     GridViewColumn ArtistColumn = new GridViewColumn();
     ArtistColumn.Header = "Artist";
     ArtistColumn.Width = 350;
     gridArtist.Columns.Add(ArtistColumn);
 }
Exemple #43
0
 /// <summary>
 /// Applies the range width property on the given column.
 /// </summary>
 /// <param name="pColumn">The column in witch to apply the properties.</param>
 /// <param name="pMinWidth">The minimum width.</param>
 /// <param name="pWidth">The default width.</param>
 /// <param name="pMaxWidth">The maximum width.</param>
 /// <param name="pIsFillColumn">Flag defining if the column fill the remaining space.</param>
 /// <returns>The configured column.</returns>
 public static GridViewColumn ApplyWidth(GridViewColumn pColumn, double pMinWidth, double pWidth, double pMaxWidth, bool pIsFillColumn)
 {
     SetMinWidth(pColumn, pMinWidth);
     pColumn.Width = pWidth;
     SetMaxWidth(pColumn, pMaxWidth);
     SetIsFillColumn(pColumn, pIsFillColumn);
     return pColumn;
 }
Exemple #44
0
 private void initGridGenre()
 {
     gridGenre.ColumnHeaderToolTip = "Genre information";
     GridViewColumn GenreColumn = new GridViewColumn();
     GenreColumn.Header = "Genre";
     GenreColumn.Width = 350;
     gridGenre.Columns.Add(GenreColumn);
 }
 public static bool GetCanUseSort(GridViewColumn element)
 {
     if (element == null)
     {
         return false;
     }
     return (bool)element.GetValue(CanUseSortProperty);
 }
		public void AddColumn(string header, Binding binding, double width)
		{
			GridViewColumn column = new GridViewColumn();
			column.Width = width;
			column.DisplayMemberBinding = binding;
			column.Header = header;
			((GridView)this.ItemsListView.View).Columns.Add(column);
		}
Exemple #47
0
		} // SetWidth

		// ----------------------------------------------------------------------
		public static bool IsFixedColumn( GridViewColumn column )
		{
			if ( column == null )
			{
				return false;
			}
			return HasPropertyValue( column, FixedColumn.WidthProperty );
		} // IsFixedColumn
 // ----------------------------------------------------------------------
 public static bool IsProportionalColumn( GridViewColumn column )
 {
     if ( column == null )
     {
         return false;
     }
     return HasPropertyValue( column, WidthProperty );
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lvControl = ((System.Windows.Controls.ListView)(target));

            #line 18 "..\..\View_Company.xaml"
                this.lvControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LvControl_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.list = ((System.Windows.Controls.GridView)(target));
                return;

            case 3:
                this.name = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.title = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.ID = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 7:
                this.Content = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 public Toolbox(IconSet icons)
 {
     this.defaultItemSize = new Size(GRIDITEM_WIDTH, GRIDITEM_HEIGHT);
     this.Width = 156;
     GridView gv = new GridView();
     GridViewColumn gvc = new GridViewColumn();
     this.icons = icons;
     gvc.Header = icons;
 }
Exemple #51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.invoicesviewpage = ((WPFPageSwitch.Views.InvoicesView)(target));
                return;

            case 2:

            #line 38 "..\..\..\Views\InvoicesView.xaml"
                ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.timeperiodComboBox_Changed);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\..\Views\InvoicesView.xaml"
                this.timePeriodComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.timeperiod2ComboBox_Changed);

            #line default
            #line hidden
                return;

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

            #line 44 "..\..\..\Views\InvoicesView.xaml"
                this.printButton.Click += new System.Windows.RoutedEventHandler(this.Print_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.transactionsList = ((System.Windows.Controls.ListView)(target));
                return;

            case 6:
                this.testowe = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            #line 70 "..\..\..\Views\InvoicesView.xaml"
                this.backButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
		bool canBeHidden(GridViewColumn column)
		{
			var columnHideable = column as GridViewHideableColumn;
			// disable hiding if supported
			if (columnHideable != null && (!columnHideable.CanBeHidden)) {
				return false;
			}
			return true;
		}
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Wizyta = ((System.Windows.Controls.ListView)(target));

            #line 10 "..\..\..\Tabs\AppointmentTab.xaml"
                this.Wizyta.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.kolumna1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 3:
                this.kolumna2 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.kolumna3 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.kolumna4 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.kolumna5 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.kolumna6 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 9:
                this.kolumna8 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 10:
                this.kolumna9 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 11:
                this.kolumna10 = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\CreateLoanPage.xaml"
                ((BancaApp.CreateLoanPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded_1);

            #line default
            #line hidden
                return;

            case 2:
                this.credite_OfertaListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.codOfertaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.sumaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.dobandaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.rataLunaraColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.MonedaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

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

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

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

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

            #line default
            #line hidden
                return;

            case 2:
                this.motherListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.addressColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.addressAroundColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.idColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.lastNameColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.nameColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 9:
                this.remarksColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 10:
                this.daysAndHoursColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.uc = ((SBMLibrary.Controls.ActiveInventoryEditor)(target));
                return;

            case 2:

            #line 33 "..\..\ActiveInventoryEditor.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSave);

            #line default
            #line hidden
                return;

            case 5:
                this.PART_ProductIDCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.PART_UPCCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.PART_NameCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 9:
                this.PART_PictureCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 10:
                this.PART_QuantityCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 11:
                this.PART_MSRPCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 12:
                this.PART_CostCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Datefrom = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 2:
                this.Dateto = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

            case 5:

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

            #line default
            #line hidden
                return;

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

            case 7:
                this.listbillupdate = ((System.Windows.Controls.ListView)(target));
                return;

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

            case 9:
                this.deleteColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 11:
                this.editColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.uc = ((SBMLibrary.Controls.TransactionEditor)(target));
                return;

            case 2:

            #line 33 "..\..\TransactionEditor.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnSave);

            #line default
            #line hidden
                return;

            case 4:
                this.PART_ProductIDCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.PART_UPCCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.PART_SKUCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.PART_DateCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 9:
                this.PART_MSRPCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 10:
                this.PART_DiscountCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 11:
                this.PART_WholeSaleCol = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #59
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\LoansPage.xaml"
                ((BancaApp.LoansPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.crediteListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.sumaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 4:
                this.dobandaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 5:
                this.rataLunaraColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 6:
                this.penalizariColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 7:
                this.dataInceperiiColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

            case 9:
                this.codMonedaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 10:
                this.sumaPlatitaColumn = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DayEvents = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.Title = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }