/// <summary> /// 商品点击选择 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tileView1_ItemClick(object sender, TileViewItemClickEventArgs e) { var view = sender as TileView; var selectedRow = view.GetFocusedRow() as GoodsEntity; BeginAddGoods(selectedRow.BarID); }
void tileView_ItemClick(object sender, TileViewItemClickEventArgs e) { if (!IsEmptyItem(e.Item.RowHandle)) { return; } TaskStatus status = (TaskStatus)tileView.GetRowCellValue(e.Item.RowHandle, "Status"); //AddNewCard(status); // 创建新卡片,暂时不要了 }
private void tileView2_ItemClick(object sender, TileViewItemClickEventArgs e) { // if (!IsEmptyItem(e.Item.RowHandle)) return; object idmon = tileView2.GetRowCellValue(e.Item.RowHandle, "idmon"); object temon = tileView2.GetRowCellValue(e.Item.RowHandle, "temon"); object dongiamon = tileView2.GetRowCellValue(e.Item.RowHandle, "dongiamon"); txtidmon.EditValue = idmon; txttemon.EditValue = temon; txtdongia.EditValue = dongiamon; }
/// <summary> /// 左侧 item click event /// </summary> private void tileView2_ItemClick(object sender, TileViewItemClickEventArgs e) { string FoodGroupID = tileView2.GetRowCellDisplayText(e.Item.RowHandle, "FoodGroupID"); if (FoodGroupID == "0") { this.tileView1.ClearColumnsFilter(); } else { this.tileView1.ActiveFilterCriteria = new BinaryOperator("FoodGroupID", FoodGroupID, BinaryOperatorType.Equal); } }
void tileView1_ItemClick(object sender, TileViewItemClickEventArgs e) { string FoodID = tileView1.GetRowCellDisplayText(e.Item.RowHandle, "FoodID"); string FoodCount = tileView1.GetRowCellDisplayText(e.Item.RowHandle, "FoodCount"); // MessageBox.Show(String.Format("'{0}' item clicked", FoodID)); MyForm.TableSettlement.TuiCai tuiCai = new MyForm.TableSettlement.TuiCai(FoodCount.Substring(1)); tuiCai.StartPosition = FormStartPosition.CenterScreen; tuiCai.ShowDialog(); //MessageBox.Show(tuiCai.TuiCaiControl1.TuiCaiDetaile1.Reason); //MessageBox.Show(tuiCai.TuiCaiControl1.TuiCaiDetaile1.Number); //MessageBox.Show(tuiCai.TuiCaiControl1.TuiCaiDetaile1.Solution); }
private void tileView1_ItemClick(object sender, TileViewItemClickEventArgs e) { TileViewItem tvi = e.Item; string filename = tvi.Text; string pathname = tvi.Text2; this.ReOpenFile?.Invoke(filename, pathname); if (this.backStageView != null) { //BackstageViewTabItem fqn = this.backStageView.SelectedTab; this.backStageView.Close(); } }
private void tileView1_ItemDoubleClick(object sender, TileViewItemClickEventArgs e) { // tileview에 있는 데이터를 가져온다. TileView view = e.Item.View; Pet pet = view.GetFocusedRow() as Pet; // as : 캐스팅 하는건데 대신에 얘가 값이 안맞으면 null을 반환해줘 맞으면 캐스팅 해줘 대신에 값타입은 안돼용 if (pet == null) { return; } // 클릭히먄 옆에 디테일에 데이터 이동 pictureEdit1.Image = ByteArrayToImage(pet.Picture); txeName.Text = pet.Name; txeSpecies.Text = pet.Species; txeAge.Text = pet.Age.ToString(); cbbeGender.Text = pet.Gender; txbSize.Text = pet.Size; txbWeight.Text = pet.Weight.ToString(); txbEtc.Text = pet.ETC; if (pet.HasNeutralized == true) { cbHasNeutralized.CheckState = CheckState.Checked; } else { cbHasNeutralized.CheckState = CheckState.Unchecked; } if (pet.HasVaccinated == true) { cbHasVaccinated.CheckState = CheckState.Checked; } else { cbHasVaccinated.CheckState = CheckState.Unchecked; } }
private void tileView2_ItemDoubleClick(object sender, TileViewItemClickEventArgs e) { TileView view = e.Item.View; Pet pet = view.GetFocusedRow() as Pet; if (pet == null) { return; } MessageBox.Show(pet.PetID.ToString()); int petId = pet.PetID; ChangingPetInformationForm changingPetInformationForm = new ChangingPetInformationForm(petId); changingPetInformationForm.Show(); }
private void tileView1_ItemClick(object sender, TileViewItemClickEventArgs e) { int itemkey = Convert.ToInt32(this.tileView1.GetRowCellValue(this.tileView1.FocusedRowHandle, "FoodID")); string isStandard = Convert.ToString(this.tileView1.GetRowCellValue(this.tileView1.FocusedRowHandle, "isStandard")); if (isStandard == "是") { List <Models.item_standard> list_itemstandard = BIZFood.QueryStandards(itemkey); MyForm.FoodManagement.StandardsForm standards = new StandardsForm(list_itemstandard); standards.StartPosition = FormStartPosition.CenterScreen; standards.MyEvent += CloseEvent; standards.ShowDialog(); } else { var a = list.Where(o => o.itemkey == itemkey).FirstOrDefault(); insertlist(itemkey, 0, Convert.ToDecimal(a.price), "", a.itemImgs, a.itemcategorykey.Value); } }
private void tileView1_ItemDoubleClick(object sender, TileViewItemClickEventArgs e) { UpdateSelectedEntity(e.Item.RowHandle); ShowEditEmployee(ViewModel.SelectedEntity); }
public virtual void OnQuickGalleryItemClick(object sender, TileViewItemClickEventArgs e) { }