private void Gv_BooksInfo_DoubleClick(object sender, EventArgs e) { if (Gv_BooksInfo.FocusedRowHandle < 0) { return; } var id = Guid.Parse(Gv_BooksInfo.GetFocusedRowCellValue("Id").ToString()); ShowBookInfoForm(false, id); }
private async void Sb_Shelves_Click(object sender, EventArgs e) { if (Gv_BooksInfo.FocusedRowHandle < 0 || Gv_BooksInfo.RowCount == 0) { return; } var id = Guid.Parse(Gv_BooksInfo.GetFocusedRowCellValue("Id").ToString()); var result = await _bookApi.CreateBook(id); if (result.ResultCode != 1) { PopupProvider.Warning(result.ResultMessage); return; } PopupProvider.Success(result.ResultMessage); }