Show split counts on split image button

This commit is contained in:
Jaex 2019-11-12 18:40:49 +03:00
parent d1f1da14ec
commit 134d893d5f

View file

@ -49,6 +49,9 @@ private void UpdateButtonStates()
{
btnSplitImage.Enabled = btnCopyChatEmoji.Enabled = !IsBusy && !string.IsNullOrEmpty(txtImageFilePath.Text) &&
(nudRowCount.Value > 1 || nudColumnCount.Value > 1) && !string.IsNullOrEmpty(txtOutputFolder.Text);
// TODO: Translate
btnSplitImage.Text = string.Format("Split image by {0}x{1}", nudColumnCount.Value, nudRowCount.Value);
}
private List<string> SplitImage(string filePath, int rowCount, int columnCount, string outputFolder)