Exemplo n.º 1
0
        public bool Equals(LoadCase n)
        {
            if ((object)n == null)
            {
                return(false);
            }

            return(this.Id == n.Id);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public bool Equals(LoadCase n)
        {
            if ((object)n == null)
                return false;

            return this.ID == n.ID;
        }
Exemplo n.º 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;
        }