protected override void OnPress(IntCoordinate c)
 {
     var rows = new Variable<int>(3);
       var columns = new Variable<int>(3);
       var dialog = new TableDialog(rows, columns);
       dialog.ShowAll();
       if (dialog.Run() == ResponseType.Ok)
     {
       SliceData.CreateTable(c, rows.Value, columns.Value);
       Redraw();
     }
       dialog.Destroy();
 }
Exemple #2
0
        override protected void OnPress(IntCoordinate c)
        {
            var rows    = new Variable <int>(3);
            var columns = new Variable <int>(3);
            var dialog  = new TableDialog(rows, columns);

            dialog.ShowAll();
            if (dialog.Run() == ResponseType.Ok)
            {
                SliceData.CreateTable(c, rows.Value, columns.Value);
                Redraw();
            }
            dialog.Destroy();
        }