/// <summary> /// Termék gombra kattintás eseménykezelő /// </summary> /// <param name="sender">A termék adatai</param> /// <param name="e"></param> private void ProductBtnClicked(object sender, EventArgs e) { if (VolumeTextBox.Text != "") { var tmpBlockItem = new Models.BlockItem(); tmpBlockItem.Product = ((ProductDataContext)sender).product; tmpBlockItem.Volume = double.Parse(VolumeTextBox.Text); Block.BlockItems.Add(tmpBlockItem); RecalculateSumms(); UpdateList(); VolumeTextBox.Text = "1"; ProductNameORBarcode.Text = ""; } }
private void Socket_OnBlockMessage(string currency, Models.BlockItem block) { }