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); }
protected void SlipGridView_SelectedIndexChanged(object sender, EventArgs e) { selectedSlip = this.GetSelectedSlip(); SlipIDTextBox.Text = selectedSlip.Width.ToString(); }
private void detach_Slips(Slip entity) { this.SendPropertyChanging(); entity.Dock = null; }
private void attach_Slips(Slip entity) { this.SendPropertyChanging(); entity.Dock = this; }
partial void DeleteSlip(Slip instance);
partial void UpdateSlip(Slip instance);
partial void InsertSlip(Slip instance);