Example #1
0
        public bool Equals(LoadCase n)
        {
            if ((object)n == null)
            {
                return(false);
            }

            return(this.Id == n.Id);
        }
Example #2
0
        /// <summary>
        /// Initialise a a new load case with the ID specified
        /// </summary>
        /// <param name="LoadCaseID">The ID of the load case to initialise</param>
        /// <returns></returns>
        LoadCase GetLoadCase(int LoadCaseID)
        {
            string       title;
            LoadCaseType type;
            LoadCase     newLoadCase;

            // Set the title
            title = this.StaadWrapper.Load.GetLoadCaseTitle(LoadCaseID).ToString();

            // Get the type of load
            type = (LoadCaseType)this.StaadWrapper.Load.GetLoadType(LoadCaseID);

            newLoadCase = new LoadCase(LoadCaseID)
            {
                Title = title,
                Type  = type
            };

            return(newLoadCase);
        }
Example #3
0
        public bool Equals(LoadCase n)
        {
            if ((object)n == null)
                return false;

            return this.ID == n.ID;
        }
Example #4
0
        /// <summary>
        /// Initialise a a new load case with the ID specified
        /// </summary>
        /// <param name="LoadCaseID">The ID of the load case to initialise</param>
        /// <returns></returns>
        private LoadCase GetLoadCase(int LoadCaseID)
        {
            string title;
            LOADCASETYPE type;
            LoadCase newLoadCase;

            // Set the title
            title = this.Staad.Load.GetLoadCaseTitle(LoadCaseID).ToString();

            // Get the type of load
            type = (LOADCASETYPE)this.Staad.Load.GetLoadType(LoadCaseID);

            newLoadCase = new LoadCase(LoadCaseID)
            {
                Title = title,
                Type = type
            };

            return newLoadCase;
        }