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

            cropperForm.ShowDialog();
        }
Example #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!");
        }
Example #3
0
 private void _cropSelectOutputBtn_Click(object sender, EventArgs e)
 {
     _cropOutputPathTextBox.Text = PathSelector.GetFilePath();
 }
Example #4
0
 private void _cropSelectSourceBtn_Click(object sender, EventArgs e)
 {
     _cropSourcePathTextBox.Text = PathSelector.GetFilePath();
 }