Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            RoomController      rc    = new RoomController();
            IEnumerable <Kamar> hasil = rc.showRoom();

            dataGridView1.DataSource = hasil.ToList();
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            RoomController rc = new RoomController();
            IEnumerable<Kamar> hasil = rc.showRoom();
            dataGridView1.DataSource = hasil.ToList();

            textBox1.Clear();
            textBox2.Clear();
            textBox5.Clear();
            comboBox1.ResetText();
        }
Пример #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            RoomController      rc    = new RoomController();
            IEnumerable <Kamar> hasil = rc.showRoom();

            dataGridView1.DataSource = hasil.ToList();

            textBox1.Clear();
            textBox2.Clear();
            textBox5.Clear();
            comboBox1.ResetText();
        }
Пример #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     RoomController rc = new RoomController();
     IEnumerable<Kamar> hasil = rc.showRoom();
     dataGridView1.DataSource = hasil.ToList();
 }