Ejemplo n.º 1
0
		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;
		}
Ejemplo n.º 2
0
		VCSCache() { cacheClearTimer = new RunOnceTimer(Clear); }