Exemplo n.º 1
0
        private void _cropImagesBtn_Click(object sender, EventArgs e)
        {
            var cropperForm = new ImageCropper(_cropSourcePathTextBox.Text, _cropOutputPathTextBox.Text,
                                               PathSelector.GetAllChildPaths(_cropSourcePathTextBox.Text));

            cropperForm.ShowDialog();
        }
Exemplo n.º 2
0
        private void _createBgTxtBtn_Click(object sender, EventArgs e)
        {
            var rawPaths      = PathSelector.GetAllChildPaths(_sourcePathTextBox.Text);
            var negativePaths = NegativeSampleCreator.ConvertToNegativeSamplePath(rawPaths);

            NegativeSampleCreator.CreateBgTxt(negativePaths, _outputPathTextBox.Text);
            MessageBox.Show($"bg.txt successfully created at \n {_outputPathTextBox.Text}", "Success!");
        }