private void DeleteButton_Click(object sender, EventArgs e)
        {
            foreach (DataGridViewRow row in this.deviceDataView.SelectedRows)
            {
                var deviceCode = row.Cells[0].Value.ToString();
                model.DeleteDeviceByCode(deviceCode);
            }

            this.loadDevices();
        }