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

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