Ejemplo n.º 1
0
 private void OnCell_CellClick(object sender, CellClickEventArgs e)
 {
     if (this.CellClick != null)
     {
         this.CellClick(this, e);
     }
 }
Ejemplo n.º 2
0
        private void OnCell_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (this.Model.IsRevealed)
            {
                return;
            }

            if (this.CellClick != null)
            {
                if (e.ChangedButton == MouseButton.Left)
                {
                    CellClickEventArgs args = new CellClickEventArgs()
                    {
                        IsRevealAction = true, Cell = this.Model
                    };
                    this.CellClick(this, args);
                }
                else
                {
                    CellClickEventArgs args = new CellClickEventArgs()
                    {
                        IsMarkAction = true, Cell = this.Model
                    };
                    this.CellClick(this, args);
                }
            }
        }