using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.ComponentModel;
using Eloquera.Client;
/// <summary>
/// Summary description for PollSubjectInfo
/// </summary>

namespace digioz.PollSystem
{
    [SerializableAttribute]
    public class PollSubjectInfo
    {
       
        private int subject_id;
        private string subject_name;
        private bool secret_ballot;
        private bool closed;
        private DateTime subject_deadline;
        private string sbuject_description;
        [Index]
        public int ID
        {
            get { return subject_id; }
            set { subject_id = value; }
        }
        
        public string SubjectName
        {
            get { return subject_name; }
            set { subject_name = value; }
        }
        
        public bool SecretBallot
        {
            get { return secret_ballot; }
            set { secret_ballot = value; }
        }

        public bool Closed
        {
            get { return closed; }
            set { closed = value; }
        }

        public DateTime SubjectDeadline
        {
            get { return subject_deadline; }
            set { subject_deadline = value; }
        }
        
        public string SubjectDescription
        {
            get { return sbuject_description; }
            set { sbuject_description = value; }
        }

        public PollSubjectInfo()
        {
            //
            // TODO: Add constructor logic here
            //
        }

    }

    public class PollSubjectInfoList : ExtendedBindingList<PollSubjectInfo>
    {
        public PollSubjectInfoList()
        { 
            
        }

    }
}