Пример #1
0
 private void Spreadsheet_load(object sender, EventArgs e)
 {
     //Initialize spreadsheet with alphabet for columns with 50 rows
     Load_Datagrid();
     //Make a new underlying spreadsheet control
     spreadSheetApp = new SpreadSheet(50, 26);
     //Subscribe to event so UI knows about underlying cell changes
     spreadSheetApp.CellPropertyChanged += new PropertyChangedEventHandler(SpreadsheetPropertyChanged);
 }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
            s = new SpreadSheet(100, 100);
            workspace.Children.Add(s);

            Stopwatch watch = new Stopwatch();

            watch.Start();
            s.Cells(0, 0).Text = "hi";
            watch.Stop();
            Console.WriteLine("Time spent: " + watch.Elapsed);
        }
Пример #3
0
 // Load event for AboutBox, it gets the version string from the spreadsheet
 // as well as prints the copywrite
 private void AboutBox1_Load(object sender, EventArgs e)
 {
     labelVersion.Text   = "Version " + SpreadSheet.GetVersion();
     labelCopyright.Text = AssemblyCopyright;
 }