Exemple #1
0
 public static ParticipantsFactory GetInstance()
 {
     if (instance == null)
     {
         instance = new ParticipantsFactory();
     }
     return(instance);
 }
Exemple #2
0
    public void addItem(Participant item)
    {
        DataRow dr = dt.NewRow();

        dr["id"]    = item.GetParticipantId();
        dr["name"]  = item.GetName();
        dr["email"] = item.GetEmail();

        ParticipantsFactory.GetInstance().addItem(dr);
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        budgetFactory      = BudgetItensFactory.GetInstance();
        participantFactory = ParticipantsFactory.GetInstance();


        if (!IsPostBack)
        {
            DataList1.DataBind();
            DataListParticipantsSelected.DataBind();
        }
    }
Exemple #4
0
    protected void CreateEvent_Click(object sender, EventArgs e)
    {
        HttpCookie c = Request.Cookies["UserType"];

        if (c == null)
        {
            Response.Redirect("Home.aspx");
        }
        else if (c.Value == "Participant")
        {
            BudgetItensFactory.GetInstance().ClearTable();
            ParticipantsFactory.GetInstance().ClearTable();
            Response.Redirect("CreateEvent.aspx");
        }
        else
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "Alert", "alert('Create Event can be accessed by venue host.');", true);
        }
    }
Exemple #5
0
 public List <int> getParticipantsKeys()
 {
     return(ParticipantsFactory.GetInstance().getKeys());
 }
Exemple #6
0
 public Boolean exists(DataRow dr)
 {
     return(ParticipantsFactory.GetInstance().existItem(dr));
 }
Exemple #7
0
 public DataSet getItens()
 {
     return(ParticipantsFactory.GetInstance().retrieveItens());
 }
Exemple #8
0
 private void ClearTableInstance()
 {
     instance = new ParticipantsFactory();
 }
Exemple #9
0
 public void ClearTable()
 {
     ParticipantsFactory.GetInstance().ClearTableInstance();
 }