private void load_contact()
        {
            rpsDataContext dbcon = new rpsDataContext();
            building       b     = dbcon.buildings.SingleOrDefault(x => x.b_id == "1");

            if (b != null)
            {
                label8.Text = b.contact;
            }
        }
예제 #2
0
파일: floors.cs 프로젝트: rahee-aiub/rps
        private void load_house_info()
        {
            rpsDataContext dbcon = new rpsDataContext();
            building       b     = dbcon.buildings.SingleOrDefault(x => x.b_id == "1");

            if (b != null)
            {
                HouseAddressTextbox.Text = b.address;
                textBox1.Text            = b.owner_name;
                textBox2.Text            = b.contact;
            }

            else
            {
                MessageBox.Show("Data not found");
            }
        }
예제 #3
0
파일: floors.cs 프로젝트: rahee-aiub/rps
        private void button2_Click(object sender, EventArgs e)
        {
            rpsDataContext dbcon = new rpsDataContext();


            building b = dbcon.buildings.SingleOrDefault(x => x.contact == search);

            if (b != null)
            {
                b.contact = textBox2.Text;
                dbcon.SubmitChanges();
                MessageBox.Show("Successfully upadated");

                textBox2.Text     = b.contact;
                textBox2.ReadOnly = true;
            }
        }
예제 #4
0
 partial void Deletebuilding(building instance);
예제 #5
0
 partial void Updatebuilding(building instance);
예제 #6
0
 partial void Insertbuilding(building instance);