Beispiel #1
0
        private void convert_Click(object sender, EventArgs e)
        {
            outInterface outInstance = outFactory.GetInstance(saveFileName.Text);

            outInstance.SetChannels(channels);

            MessageBox.Show("File converted: " + saveFileName.Text, "Converting", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Beispiel #2
0
        private void save_Click(object sender, EventArgs e)
        {
            if (channels == null)
            {
                MessageBox.Show("You must change input file", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (saveFileDialog.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            saveFileName.Text = saveFileDialog.FileName;

            outInterface outInstance = outFactory.GetInstance(saveFileDialog.FileName);

            outInstance.SetChannels(channels);

            MessageBox.Show("File converted: " + saveFileDialog.FileName, "Converting", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }