コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Designer{T}" /> class.
 /// </summary>
 /// <param name="app">The application.</param>
 /// <param name="groups">The groups.</param>
 /// <param name="loadCombinations">The load combinations.</param>
 /// <param name="apiObject">The API object.</param>
 protected Designer(
     ApiCSiApplication app,
     Groups groups,
     LoadCombinations loadCombinations,
     T apiObject) : base(app)
 {
     _apiComboStrength = apiObject;
     _apiAutoSection   = apiObject;
     _groups           = groups;
     _loadCombinations = loadCombinations;
 }
コード例 #2
0
 /// <summary>
 /// Selects or deselects a load combination for strength design.
 /// </summary>
 /// <param name="nameLoadCombination">Name of an existing load combination.</param>
 /// <param name="selectLoadCombination">True: The specified load combination is selected as a design combination for strength design.
 /// False: The combination is not selected for strength design.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 protected void setComboStrength(IComboStrength app, string nameLoadCombination, bool selectLoadCombination)
 {
     app.SetComboStrength(nameLoadCombination, selectLoadCombination);
     if (selectLoadCombination)
     {
         if (!CombinationsStrength.Contains(nameLoadCombination))
         {
             CombinationsStrength.Add(nameLoadCombination);
         }
     }
     else
     {
         CombinationsStrength.Remove(nameLoadCombination);
     }
 }
コード例 #3
0
        // ===

        /// <summary>
        /// Gets the load combination selected for strength design.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        protected void getComboStrength(IComboStrength app)
        {
            CombinationsStrength = new List <string>(app.GetComboStrength());
        }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoadCombinationsStrength"/> class.
 /// </summary>
 /// <param name="apiComboStrength">The API combo strength.</param>
 /// <param name="loadCombinations">The load combinations.</param>
 public LoadCombinationsStrength(IComboStrength apiComboStrength, LoadCombinations loadCombinations)
 {
     _apiComboStrength = apiComboStrength;
     _loadCombinations = loadCombinations;
 }