Beispiel #1
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            var executablePath = tbExecutablePath.Text;

            if (string.IsNullOrWhiteSpace(executablePath))
            {
                return;
            }

            var creator = new Core.Helpers.SplashCreator();

            try
            {
                var technique   = _selectedTechniqueControlDatum.Technique;
                var splashData  = _selectedTechniqueControlDatum.Control.GetSplashData();
                var outputBytes = creator.CreateSplash(executablePath, technique, splashData);

                var outputExecutablePath = GetAvailableFilePath(executablePath);
                File.WriteAllBytes(outputExecutablePath, outputBytes);
            }
            catch (Exception exception)
            {
                MessageBox.Show($@"Error: {exception.Message}");
            }
        }
Beispiel #2
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            var executablePath = tbExecutablePath.Text;
            if (string.IsNullOrWhiteSpace(executablePath))
                return;

            var creator = new Core.Helpers.SplashCreator();

            try
            {
                var technique = _selectedTechniqueControlDatum.Technique;
                var splashData = _selectedTechniqueControlDatum.Control.GetSplashData();
                var outputBytes = creator.CreateSplash(executablePath, technique, splashData);

                var outputExecutablePath = GetAvailableFilePath(executablePath);
                File.WriteAllBytes(outputExecutablePath, outputBytes);
            }
            catch (Exception exception)
            {
                MessageBox.Show($@"Error: {exception.Message}");
            }
        }