Exemplo n.º 1
0
        private Slip GetSelectedSlip()
        {
            Slip        s      = new Slip();
            GridViewRow gr     = SlipGridView.SelectedRow;
            int         slipID = Convert.ToInt32(gr.Cells[1].Text);

            using (SlipDataContext dbContext = new SlipDataContext())
            {
                s = (from p in dbContext.Slips
                     where p.ID == slipID
                     select p).Single();
            }
            return(s);
        }
Exemplo n.º 2
0
        protected void SlipGridView_SelectedIndexChanged(object sender, EventArgs e)
        {
            selectedSlip = this.GetSelectedSlip();

            SlipIDTextBox.Text = selectedSlip.Width.ToString();
        }
Exemplo n.º 3
0
 private void detach_Slips(Slip entity)
 {
     this.SendPropertyChanging();
     entity.Dock = null;
 }
Exemplo n.º 4
0
 private void attach_Slips(Slip entity)
 {
     this.SendPropertyChanging();
     entity.Dock = this;
 }
Exemplo n.º 5
0
 partial void DeleteSlip(Slip instance);
Exemplo n.º 6
0
 partial void UpdateSlip(Slip instance);
Exemplo n.º 7
0
 partial void InsertSlip(Slip instance);