コード例 #1
0
        public void GetNewDomainDataSource(string Name, string QueryName, bool AutoLoad)
        {
            RadDomainDataSource value = null;

            if (!this.DataSources.TryGetValue(QueryName, out value))
            {
                RadDomainDataSource radDomainDataSource = new RadDomainDataSource(Name, QueryName, AutoLoad);
                radDomainDataSource.CreateRadDomainDataSource();
                this.DataSources.Add(QueryName, radDomainDataSource);
            }
        }
コード例 #2
0
        public void GetNewDetailsDomainDataSource(string Name, string QueryName, bool AutoLoad, string ParameterName, string BindingPath, string MasterGridName)
        {
            RadDomainDataSource value = null;

            if (!this.DataSources.TryGetValue(QueryName, out value))
            {
                RadDomainDataSource radDomainDataSource = new RadDomainDataSource(Name, QueryName, AutoLoad);
                radDomainDataSource.CreateRadDomainDataSourceWithParameter(ParameterName, BindingPath, MasterGridName);
                this.DataSources.Add(QueryName, radDomainDataSource);
            }
        }
コード例 #3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Contacts;component/Views/ContactsListUserContro" +
                 "l.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.contactsDataSource = ((RadDomainDataSource)(this.FindName("contactsDataSource")));
     this.gridView = ((RadGridView)(this.FindName("gridView")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Contacts;component/Views/ContactOpportunitiesUs" +
                 "erControl.xaml", System.UriKind.Relative));
     this.uc = ((System.Windows.Controls.UserControl)(this.FindName("uc")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.VisualStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("VisualStateGroup")));
     this.Normal = ((System.Windows.VisualState)(this.FindName("Normal")));
     this.Edit = ((System.Windows.VisualState)(this.FindName("Edit")));
     this.opportunitiesGrid = ((RadGridView)(this.FindName("opportunitiesGrid")));
     this.overlayRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("overlayRectangle")));
     this.border = ((System.Windows.Controls.Border)(this.FindName("border")));
     this.dataForm = ((RadDataForm)(this.FindName("dataForm")));
     this.productsDataSource = ((RadDomainDataSource)(this.FindName("productsDataSource")));
 }
コード例 #5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Ventas;component/Views/VentasView.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.activitiesDataSource = ((RadDomainDataSource)(this.FindName("activitiesDataSource")));
     this.contactsDataSource = ((RadDomainDataSource)(this.FindName("contactsDataSource")));
     this.opportunitiesDataSource = ((RadDomainDataSource)(this.FindName("opportunitiesDataSource")));
     this.contactsGrid = ((System.Windows.Controls.Grid)(this.FindName("contactsGrid")));
     this.coverFlow = ((RadCoverFlow)(this.FindName("coverFlow")));
     this.statsGrid = ((System.Windows.Controls.Grid)(this.FindName("statsGrid")));
     this.statsItemsControl = ((RadUniformGrid)(this.FindName("statsItemsControl")));
     this.activitiesGrid = ((System.Windows.Controls.Grid)(this.FindName("activitiesGrid")));
     this.activitiesItemsControl = ((System.Windows.Controls.ItemsControl)(this.FindName("activitiesItemsControl")));
     this.opportunitiesGrid = ((System.Windows.Controls.Grid)(this.FindName("opportunitiesGrid")));
     this.opportunitiesItemsControl = ((System.Windows.Controls.ItemsControl)(this.FindName("opportunitiesItemsControl")));
 }