public DataGridViewModel(bool isDesignTime = false)
        {
            if (isDesignTime)
            {
                return;
            }

            ImportData = new CsvImportData
            {
                Lines          = new ObservableCollection <string>(),
                StartRowNumber = 0,
                EndRowNumber   = 0,
                Separators     = new string[] { string.Empty }
            };
        }
Exemplo n.º 2
0
 public DataGridDesignModel() : base(true)
 {
     ImportData = new CsvImportData
     {
         Lines = new ObservableCollection <string>()
         {
             "Name;Job;Age;Gender",
             "Alex;Scientist;28;Male",
             "Irene;Secretary;55;Female",
             "Laura;Developer;27;Female",
             "Max;Developer;32;Male",
         },
         StartRowNumber = 5,
         EndRowNumber   = 10,
         Separators     = new string[] { ";" }
     };
 }