Пример #1
0
 private void notify_changed(object sender, CellCoords e)
 {
     if (changed != null)
     {
         changed(this, e);
     }
 }
Пример #2
0
 public void do_changed(CellCoords e)
 {
     if (e == null)
     {
         invalidate_all();
     }
     else if (e.Column < 0)
     {
         if (e.Row < 0)
         {
             invalidate_all();
         }
         else
         {
             invalidate_row(e.Row);
         }
     }
     else if (e.Row < 0)
     {
         invalidate_column(e.Column);
     }
     else
     {
         invalidate_cell(e.Column, e.Row);
     }
 }
        bool ISendUserActions.do_longpress(double x, double y)
        {
            CellCoords cc = find_cell(x, y);

            if (cc != null)
            {
                if (LongPress != null)
                {
                    LongPress(this, cc);
                }
                return(true);
            }
            else
            {
                return(false);
            }
        }
        bool ISendUserActions.do_doubletap(double x, double y)
        {
            CellCoords cc = find_cell(x, y);

            if (cc != null)
            {
                if (DoubleTap != null)
                {
                    DoubleTap(this, cc);
                }
                return(true);
            }
            else
            {
                return(false);
            }
        }
Пример #5
0
 private void on_chained_change(object sender, CellCoords e)
 {
     _cache.do_changed(e);
 }