public bool getShiftStartEnd(bool shiftStart)
{
string sql = "";
if (shiftStart)
{
sql = "Select [PropertyValue] From [ConfigSettings] WHERE [appProperty]='shiftStart'";
}
else
{
sql = "Select [PropertyValue] From [ConfigSettings] WHERE [appProperty]='shiftEnd'";
}
DataSet ds = database.getDataSet(sql, "tableName");
string propertyValue = ds.Tables["tableName"].Rows[0]["propertyValue"].ToString();
if (propertyValue == "" || propertyValue == null)
{//If true then option can be selected
return true;
}
else//The option cannot be selected
{
return false;
}
}