Beispiel #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);
        }
Beispiel #2
0
        protected void SlipGridView_SelectedIndexChanged(object sender, EventArgs e)
        {
            selectedSlip = this.GetSelectedSlip();

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