CheckHaveSelected() public method

Check whether a regular slab is selected.
public CheckHaveSelected ( ) : bool
return bool
Ejemplo n.º 1
0
        /// <summary>
        /// Form load.
        /// </summary>
        /// <param name="sender">This object.</param>
        /// <param name="e">A object contains the event data.</param>
        private void FoundationSlabForm_Load(object sender, EventArgs e)
        {
            okButton.Enabled           = m_datas.CheckHaveSelected();
            typeComboBox.DataSource    = m_datas.FoundationSlabTypeList;
            typeComboBox.DisplayMember = "Name";

            if (0 == m_datas.BaseSlabList.Count)
            {
                selectAllButton.Enabled = false;
                clearAllButton.Enabled  = false;
            }
        }