/// <summary>
        /// Sets the selection to the specified item.
        /// </summary>
        /// <param name="item">Item to set selection to.</param>
        public void SetSelection(GraphicalDependenciesItem item)
        {
            ClearSelection();

            selectedDItems.Add(item);
            item.IsSelected = true;

            System.Collections.ObjectModel.Collection<object> col = new System.Collections.ObjectModel.Collection<object>();
            col.Add(item.SelectedData);
            this.SelectedItems = col;
        }
コード例 #2
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="RegionCriteria" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="RegionCriteria" /> class.</para>
 /// </summary>
 public RegionCriteria()
 {
     this._geoInfoNodeCriteria = new System.Collections.ObjectModel.Collection<GeoInfoNodeCriteria>();
 }
コード例 #3
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="GeoCodedAddressList" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="GeoCodedAddressList" /> class.</para>
 /// </summary>
 public GeoCodedAddressList()
 {
     this._geoCodedAddress = new System.Collections.ObjectModel.Collection<GeoCodedAddress>();
 }
コード例 #4
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Cities" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Cities" /> class.</para>
 /// </summary>
 public Cities()
 {
     this._city = new System.Collections.ObjectModel.Collection<CitiesCity>();
 }
コード例 #5
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Regions" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Regions" /> class.</para>
 /// </summary>
 public Regions()
 {
     this._region = new System.Collections.ObjectModel.Collection<RegionsRegion>();
 }
コード例 #6
0
ファイル: UnitTestOutput.cs プロジェクト: krukovskiy/STUPS
        public static void StartAddingOutput()
        {
            if (null != outputCollection &&
                (0 == outputCollection.Count) || // no elements in UnitTestOutput
                (0 < outputCollection.Count && // there is at elast one element in UnitTestOutput
                 0 < outputCollection[outputCollection.Count - 1].Count)) { // that is not empty

                System.Collections.ObjectModel.Collection<object> collection =
                    new System.Collections.ObjectModel.Collection<object>();

                outputCollection.Add(collection);

            }
        }
コード例 #7
0
ファイル: ReportControl.ascx.cs プロジェクト: KGAD/mixerp
        private void SetRunningTotalFields()
        {
            //Get the list of datasources for this report.
            XmlNodeList dataSourceList = XmlHelper.GetNodes(reportPath, "//DataSource");
            int runningTotalTextColumnIndex = 0;
            string runningTotalFieldIndices = string.Empty;

            //Initializing running total text column index collection.
            this.RunningTotalTextColumnIndexCollection = new System.Collections.ObjectModel.Collection<int>();

            //Initializing running total field indices collection.
            this.RunningTotalFieldIndicesCollection = new System.Collections.ObjectModel.Collection<string>();

            //Loop through each datasource in the datasource list.
            foreach(XmlNode dataSource in dataSourceList)
            {
                //Resetting the variables for each iteration.
                runningTotalTextColumnIndex = 0;
                runningTotalFieldIndices = string.Empty;

                //Loop through each datasource child node.
                foreach(XmlNode node in dataSource.ChildNodes)
                {
                    //Selecting the nodes matching the tag <RunningTotalTextColumnIndex>.
                    if(node.Name.Equals("RunningTotalTextColumnIndex"))
                    {
                        runningTotalTextColumnIndex = MixERP.Net.Common.Conversion.TryCastInteger(node.InnerText);
                    }

                    //Selecting the nodes matching the tag <RunningTotalFieldIndices>.
                    if(node.Name.Equals("RunningTotalFieldIndices"))
                    {
                        runningTotalFieldIndices = node.InnerText;
                    }
                }

                //Add current "RunningTotalTextColumnIndexCollection" and "RunningTotalFieldIndicesCollection"
                //to the collection object.
                //If child nodes are found which match the the associated tags
                //under the current node, the variable "runningTotalTextColumnIndex" and "runningTotalFieldIndices" will have
                //values. If not, an empty string for "runningTotalFieldIndices" and zero for "runningTotalTextColumnIndex"
                //will be added to the collection.
                this.RunningTotalTextColumnIndexCollection.Add(runningTotalTextColumnIndex);
                this.RunningTotalFieldIndicesCollection.Add(runningTotalFieldIndices);
            }
        }
コード例 #8
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Premiumplacements" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Premiumplacements" /> class.</para>
 /// </summary>
 public Premiumplacements()
 {
     this._premiumplacement = new System.Collections.ObjectModel.Collection<Premiumplacement>();
 }
コード例 #9
0
 /// <summary>
 /// 查询,使用Id DESC排序
 /// </summary>
 /// <param name="patientId">patientId</param>
 /// <param name="therapyMode">therapyMode</param>
 /// <returns></returns>
 public virtual ICollection<ViewProductWorkingStatisticsData> SelectByPatientIdTherapyMode(Guid patientId, int therapyMode)
 {
     if (Disposed)
     {
         throw new ObjectDisposedException(ToString());
     }
     ICollection<ViewProductWorkingStatisticsData> resultList = null;
     using (var reader = SqlHelper.ExecuteReader(sqlConnection, System.Data.CommandType.Text, selectByPatientIdTherapyMode,
         new SqlParameter("@PatientId", patientId),
         new SqlParameter("@TherapyMode", therapyMode)
         ))
     {
         if (reader.HasRows)
         {
             resultList = new System.Collections.ObjectModel.Collection<ViewProductWorkingStatisticsData>();
         }
         while (reader.Read())
         {
             ViewProductWorkingStatisticsData result = new ViewProductWorkingStatisticsData();
             result.Id = reader.GetGuid(0);
             result.ProductId = reader.GetGuid(1);
             result.ProductId = reader.GetGuid(2);
             result.TherapyMode = reader.GetInt32(3);
             result.DataTime = reader.GetDateTime(4);
             result.TotalUsage = reader.GetInt64(5);
             result.CountAHI = reader.GetInt32(6);
             result.CountAI = reader.GetInt32(7);
             result.CountHI = reader.GetInt32(8);
             result.CountSnore = reader.GetInt32(9);
             result.CountPassive = reader.GetInt32(10);
             result.PressureMax = reader.GetFloat(11);
             result.PressureP95 = reader.GetFloat(12);
             result.PressureMedian = reader.GetFloat(13);
             result.FlowMax = reader.GetFloat(14);
             result.FlowP95 = reader.GetFloat(15);
             result.FlowMedian = reader.GetFloat(16);
             result.LeakMax = reader.GetFloat(17);
             result.LeakP95 = reader.GetFloat(18);
             result.LeakMedian = reader.GetFloat(19);
             result.TidalVolumeMax = reader.GetFloat(20);
             result.TidalVolumeP95 = reader.GetFloat(21);
             result.TidalVolumeMedian = reader.GetFloat(22);
             result.MinuteVentilationMax = reader.GetInt32(23);
             result.MinuteVentilationP95 = reader.GetInt32(24);
             result.MinuteVentilationMedian = reader.GetInt32(25);
             result.SpO2Max = reader.GetInt32(26);
             result.SpO2P95 = reader.GetInt32(27);
             result.SpO2Median = reader.GetInt32(28);
             result.PulseRateMax = reader.GetInt32(29);
             result.PulseRateP95 = reader.GetInt32(30);
             result.PulseRateMedian = reader.GetInt32(31);
             result.RespiratoryRateMax = reader.GetInt32(32);
             result.RespiratoryRateP95 = reader.GetInt32(33);
             result.RespiratoryRateMedian = reader.GetInt32(34);
             result.IERatioMax = reader.GetFloat(35);
             result.IERatioP95 = reader.GetFloat(36);
             result.IERatioMedian = reader.GetFloat(37);
             result.IPAPMax = reader.GetFloat(38);
             result.IPAPP95 = reader.GetFloat(39);
             result.IPAPMedian = reader.GetFloat(40);
             result.EPAPMax = reader.GetFloat(41);
             result.EPAPP95 = reader.GetFloat(42);
             result.EPAPMedian = reader.GetFloat(43);
             resultList.Add(result);
         }
         reader.Close();
     }
     return resultList;
 }
コード例 #10
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="RealtorBadges" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="RealtorBadges" /> class.</para>
 /// </summary>
 public RealtorBadges()
 {
     this._badges = new System.Collections.ObjectModel.Collection<Badge>();
 }
コード例 #11
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="List" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="List" /> class.</para>
 /// </summary>
 public List()
 {
     this._attachmentId = new System.Collections.ObjectModel.Collection<long>();
 }
コード例 #12
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="VideoInfo" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="VideoInfo" /> class.</para>
 /// </summary>
 public VideoInfo()
 {
     this._videoUrlList = new System.Collections.ObjectModel.Collection<VideoUrlList>();
 }
コード例 #13
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="StrictList" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="StrictList" /> class.</para>
 /// </summary>
 public StrictList()
 {
     this._matchCountList = new System.Collections.ObjectModel.Collection<MatchCount>();
     this._strictEntry = new System.Collections.ObjectModel.Collection<StrictEntry>();
 }
コード例 #14
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="SiteRecommendedUseTypes" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="SiteRecommendedUseTypes" /> class.</para>
 /// </summary>
 public SiteRecommendedUseTypes()
 {
     this._siteRecommendedUseType = new System.Collections.ObjectModel.Collection<SiteRecommendedUseType>();
 }
コード例 #15
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="SharedEntryCommentList" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="SharedEntryCommentList" /> class.</para>
 /// </summary>
 public SharedEntryCommentList()
 {
     this._entry = new System.Collections.ObjectModel.Collection<SharedEntryComment>();
 }
コード例 #16
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="ProductBookingOverview" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="ProductBookingOverview" /> class.</para>
 /// </summary>
 public ProductBookingOverview()
 {
     this._productBooking = new System.Collections.ObjectModel.Collection<ProductBooking>();
 }
コード例 #17
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="SharedShortlistGroupInvitedUsers" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="SharedShortlistGroupInvitedUsers" /> class.</para>
 /// </summary>
 public SharedShortlistGroupInvitedUsers()
 {
     this._sharedShortlistGroupUser = new System.Collections.ObjectModel.Collection<SharedShortlistGroupUser>();
 }
コード例 #18
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="SearchPictureUrls" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="SearchPictureUrls" /> class.</para>
 /// </summary>
 public SearchPictureUrls()
 {
     this._url = new System.Collections.ObjectModel.Collection<SearchPictureUrlsUrl>();
 }
コード例 #19
0
ファイル: ReportControl.ascx.cs プロジェクト: KGAD/mixerp
        private void SetDecimalFields()
        {
            string decimalFieldIndices = string.Empty;

            //Get the list of datasources for this report.
            XmlNodeList dataSourceList = XmlHelper.GetNodes(reportPath, "//DataSource");

            //Initializing decimal field indices collection.
            this.DecimalFieldIndicesCollection = new System.Collections.ObjectModel.Collection<string>();

            //Loop through each datasource in the datasource list.
            foreach(XmlNode dataSource in dataSourceList)
            {
                //Resetting the variable for each iteration.
                decimalFieldIndices = string.Empty;

                //Loop through each datasource child node.
                foreach(XmlNode node in dataSource.ChildNodes)
                {
                    //Selecting the nodes matching the tag <DecimalFieldIndices>.
                    if(node.Name.Equals("DecimalFieldIndices"))
                    {
                        decimalFieldIndices = node.InnerText;
                    }
                }

                //Add current "DecimalFieldIndices" to the collection object.
                //If a child node is found which matches the tag <DecimalFieldIncides>
                //under the current node, the variable "decimalFieldIndices" will have
                //a value. If not, an empty string will be added to the collection.
                this.DecimalFieldIndicesCollection.Add(decimalFieldIndices);
            }
        }
コード例 #20
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="ShortlistEntries" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="ShortlistEntries" /> class.</para>
 /// </summary>
 public ShortlistEntries()
 {
     this._shortlistEntry = new System.Collections.ObjectModel.Collection<ShortlistEntry>();
 }
コード例 #21
0
ファイル: WindowInfo.cs プロジェクト: madebysoren/NooSphere
 public Collection<WindowInfo> FindChildren(string className, string text)
 {
     bool canContinue = true;
     System.Collections.ObjectModel.Collection<WindowInfo> children = new System.Collections.ObjectModel.Collection<WindowInfo>();
     do
     {
         IntPtr lastHandle = default(IntPtr);
         if (children.Count != 0)
             lastHandle = children[children.Count - 1].Handle;
         IntPtr h = User32.FindWindowEx(hWnd, lastHandle, className, text);
         if (h.ToInt32() == 0)
         {
             canContinue = false;
         }
         else
         {
             children.Add(new WindowInfo(h));
         }
     } while (!(canContinue == false));
     return children;
 }
コード例 #22
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="ShortlistEntry" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="ShortlistEntry" /> class.</para>
 /// </summary>
 public ShortlistEntry()
 {
     this._tags = new System.Collections.ObjectModel.Collection<TagName>();
 }
コード例 #23
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Quarters" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Quarters" /> class.</para>
 /// </summary>
 public Quarters()
 {
     this._quarter = new System.Collections.ObjectModel.Collection<QuartersQuarter>();
 }
コード例 #24
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="ShortlistEntryRatingItem" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="ShortlistEntryRatingItem" /> class.</para>
 /// </summary>
 public ShortlistEntryRatingItem()
 {
     this._invitedUsersRatingList = new System.Collections.ObjectModel.Collection<ShortlistEntryRatingType>();
 }
コード例 #25
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Continents" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Continents" /> class.</para>
 /// </summary>
 public Continents()
 {
     this._continent = new System.Collections.ObjectModel.Collection<ContinentsContinent>();
 }
コード例 #26
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Shortlists" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Shortlists" /> class.</para>
 /// </summary>
 public Shortlists()
 {
     this._shortlist = new System.Collections.ObjectModel.Collection<ShortlistsShortlist>();
 }
コード例 #27
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Countries" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Countries" /> class.</para>
 /// </summary>
 public Countries()
 {
     this._country = new System.Collections.ObjectModel.Collection<CountriesCountry>();
 }
コード例 #28
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="Tags" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="Tags" /> class.</para>
 /// </summary>
 public Tags()
 {
     this._tag = new System.Collections.ObjectModel.Collection<TagName>();
 }
コード例 #29
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="RealEstateStock" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="RealEstateStock" /> class.</para>
 /// </summary>
 public RealEstateStock()
 {
     this._priceRegionRealEstateStock = new System.Collections.ObjectModel.Collection<PriceRegionRealEstateStock>();
 }
コード例 #30
0
 /// <summary>
 /// <para xml:lang="de">Initialisiert eine neue Instanz der <see cref="RealtorContactDetailsList" /> Klasse.</para>
 /// <para xml:lang="en">Initializes a new instance of the <see cref="RealtorContactDetailsList" /> class.</para>
 /// </summary>
 public RealtorContactDetailsList()
 {
     this._realtorContactDetails = new System.Collections.ObjectModel.Collection<RealtorContactDetails>();
 }