//GridForm.cs /***************************************************************************** * * ReoGrid - .NET Spreadsheet Control * * http://reogrid.codeplex.com/ * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR * PURPOSE. * * This software released under LGPLv3 license. * Author: Jing Lu * * Copyright (c) 2012-2014 unvell.com, all rights reserved. * ****************************************************************************/ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace unvell.ReoGrid.Demo { public partial class GridForm : Form { public GridForm() { InitializeComponent(); } public void Open(string file, Action postHandler) { #if DEBUG grid.Load(System.IO.Path.Combine("..\\..\\..\\Samples", file)); #else grid.Load(file); #endif if (postHandler != null) postHandler(grid); } } }