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