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

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