Exemple #1
0
        public static RowViewModelBase Create(ModuleBuilder mb, SpreadsheetViewModel viewModel, int rowNumber, int columns)
        {
            if (RowType == null)
                RowType = CreateType(mb, columns);

            return (RowViewModelBase)Activator.CreateInstance(RowType, viewModel, rowNumber);
        }
Exemple #2
0
 private void InitializeSpreadsheet()
 {
     LoadFunctions();
     _extensions = new Extensions();
     _vm = new SpreadsheetViewModel(_extensions, CreateDynamicModule(), 15, 52);
     Spreadsheet.ItemsSource = _vm.DataSource;
 }
Exemple #3
0
 public RowViewModelBase(SpreadsheetViewModel viewModel, int rowNumber)
 {
     ViewModel = viewModel;
     _rowNumber = rowNumber.ToString();
 }