Ejemplo n.º 1
0
 /// <summary>
 /// The page load event adds datasource to the DataGridView, and binds it to the list.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DVDEzy.CheckSession();
         gridTransactions.DataSource = Transaction.List(); // Sets the datasource to the List reference.
         gridTransactions.DataBind();                      // Binds the objects.
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The page load event adds datasource to the DataGridView, and binds it to the list.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DVDEzy.CheckSession();
         // Binds the DataGridView to the DVD List
         gridDVDS.DataSource = DVD.List();
         gridDVDS.DataBind();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// The page load event will Fetch the object which corresponds to the unqiue key received,
 /// and invoke the ShowRecord method on the form usercontrol passing the object as an argument.
 /// It will then set the visibility of the form to true.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     DVDEzy.CheckSession();
     try {
         DVD dvd = DVD.Fetch(Convert.ToInt32(Request.QueryString["view"]));
         if (dvd != null)
         {
             dvdForm.ShowRecord(dvd);
             dvdForm.Visible = true;
         }
     } catch (Exception ex) {}
 }
 /// <summary>
 /// The page load event will Fetch the object which corresponds to the unqiue key received,
 /// and invoke the ShowRecord method on the form usercontrol passing the object as an argument.
 /// It will then set the visibility of the form to true.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     DVDEzy.CheckSession();
     try {
         Transaction transaction = Transaction.Fetch(Convert.ToInt32(Request.QueryString["view"]));
         if (transaction != null)
         {
             transactionForm.ShowRecord(transaction);
             transactionForm.Visible = true;
         }
     } catch (Exception ex) {}
 }
Ejemplo n.º 5
0
 /// <summary>
 /// The page load event will Fetch the object which corresponds to the unqiue key received,
 /// and invoke the ShowRecord method on the form usercontrol passing the object as an argument.
 /// It will then set the visibility of the form to true. It will also show the transactions relating
 /// to the specific customer.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     DVDEzy.CheckSession();
     try {
         Customer customer = Customer.Fetch(Convert.ToInt32(Request.QueryString["view"]));
         if (customer != null)
         {
             memberForm.ShowRecord(customer);
             memberForm.Visible          = true;
             this.lblMemberTitle.Text    = "Member: " + customer.fullName;
             this.lblMemberTitle.Visible = true;
             if (!IsPostBack)
             {
                 gridTransactions.DataSource = Transaction.List(Convert.ToInt32(Request.QueryString["view"])); // Sets the datasource to the List reference.
                 gridTransactions.DataBind();                                                                  // Binds the objects.
             }
         }
     }
     catch (Exception ex) { }
 }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     DVDEzy.CheckSession();
 }