SplitDialog(TextData data) { InitializeComponent(); calcNumFiles = new RunOnceTimer(() => CalculateNumFiles()); calcSize = new RunOnceTimer(() => CalculateSize()); this.data = data; OutputDir = Path.GetDirectoryName(data.FileName); OutputTemplate = $"{Path.GetFileNameWithoutExtension(data.FileName)} - {{0}}{Path.GetExtension(data.FileName)}"; foreach (var value in Helpers.GetValues<SizeTypeEnum>()) sizeType.Items.Add(value); Size = 50; SizeType = SizeTypeEnum.MB; }
VCSCache() { cacheClearTimer = new RunOnceTimer(Clear); }