Example #1
0
        private void toolStripButtonEditRoom_Click(object sender, EventArgs e)
        {
            FormRoomAddEdit frmEditRoom = new FormRoomAddEdit(Convert.ToInt32(((DataRowView)this.roomsBindingSource.Current).Row["ID_room"].ToString()),
                                                              ((DataRowView)this.roomsBindingSource.Current).Row["Name"].ToString(),
                                                              ((DataRowView)this.roomsBindingSource.Current).Row["Description"].ToString(),
                                                              ((DataRowView)this.roomsBindingSource.Current).Row["Floor"].ToString(),
                                                              ((DataRowView)this.roomsBindingSource.Current).Row["Block"].ToString(),
                                                              ((DataRowView)this.roomsBindingSource.Current).Row["Type_room"].ToString());

            frmEditRoom.ShowDialog();
        }
Example #2
0
        private void toolStripButtonAddRoom_Click(object sender, EventArgs e)
        {
            FormRoomAddEdit frmAddRoom = new FormRoomAddEdit();

            frmAddRoom.ShowDialog();
        }