コード例 #1
0
 private void tileView1_ItemClick(object sender, DevExpress.XtraGrid.Views.Tile.TileViewItemClickEventArgs e)
 {
     if (e.Item["payway"].ToString() == "添加收银方式")
     {
         MyForm.More.cantingSetUp.EditPayWayNameForm editPayWayName = new MyForm.More.cantingSetUp.EditPayWayNameForm(-1, "", list, 2);
         editPayWayName.StartPosition = FormStartPosition.CenterScreen;
         editPayWayName.ShowDialog();
         RefreshList();
     }
 }
コード例 #2
0
        private void tileView1_ContextButtonClick(object sender, ContextItemClickEventArgs e)
        {
            DevExpress.XtraGrid.Views.Tile.TileViewItem tileViewItem = (DevExpress.XtraGrid.Views.Tile.TileViewItem)e.DataItem;
            string payway = this.tileView1.GetRowCellValue(tileViewItem.RowHandle, this.tileView1.Columns["payway"]).ToString();
            int    id     = Convert.ToInt32(this.tileView1.GetRowCellValue(tileViewItem.RowHandle, this.tileView1.Columns["id"]));

            if (e.Item.Name == "contextButton1")
            {
                MyForm.More.cantingSetUp.EditPayWayNameForm editPayWayName = new MyForm.More.cantingSetUp.EditPayWayNameForm(id, payway, list, 1);
                editPayWayName.StartPosition = FormStartPosition.CenterScreen;
                editPayWayName.ShowDialog();
                RefreshList();
            }
        }