CsvView: Remove unused method Index_LoadReg
This commit is contained in:
@@ -80,20 +80,8 @@ public partial class MainWindow : Window
|
|||||||
RenderReg(0);
|
RenderReg(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private MainWindowViewModel Index_LoadReg(int idx, int maxIndex)
|
private bool _rendering;
|
||||||
{
|
|
||||||
CsvParser csvParser = new();
|
|
||||||
csvParser.ParseFile(_loadedFile, _index[idx], 1);
|
|
||||||
MainWindowViewModel viewModel = new()
|
|
||||||
{
|
|
||||||
Index = idx,
|
|
||||||
MaxIndex = maxIndex,
|
|
||||||
Fields = csvParser.Data[0].Select(f => new FieldViewModel { Text = f, }).ToList(),
|
|
||||||
};
|
|
||||||
return viewModel;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool _rendering;
|
|
||||||
private void RenderReg(long currentReg)
|
private void RenderReg(long currentReg)
|
||||||
{
|
{
|
||||||
if (_rendering) { return; }
|
if (_rendering) { return; }
|
||||||
|
|||||||
Reference in New Issue
Block a user