Ejemplo n.º 1
0
 private void CreateStandardControls()
 {
     propertiesForm = new PropertiesForm();
     histogramForm = new HistogramForm();
     analysisForm = new AnalysisForm();
     propertiesForm.Show(dockPanel, DockState.DockBottom);
     histogramForm.Show(dockPanel, DockState.DockBottom);
     analysisForm.Show(dockPanel, DockState.DockBottom);
 }
Ejemplo n.º 2
0
        public ImageItems(string HostImageFileName,
                          string SecretImageFileName,
                          SettingsForm settingsForm,
                          AnalysisForm analysisForm)
        {
            InitializeComponent();
            if (HostImageFileName == string.Empty)
                throw new ArgumentNullException("HostImageFileName");
            if (SecretImageFileName == string.Empty)
                throw new ArgumentNullException("SecretImageFileName");

            try
            {
                hostImage = new Bitmap(HostImageFileName);
                secretImage = new Bitmap(SecretImageFileName);
                this.algorithm = settingsForm.SelectedAlgorithm;
                this.type = settingsForm.Type;
                this.numberOfBits = settingsForm.NumberOfBits;
                this.direction = settingsForm.Direction;
                this.numberOfRndNumbers = settingsForm.NumberOfRndNumber;
                this.analysisForm = analysisForm;

                RunAlgorithm();

                hostImageBox.Image = (Image)hostImage;
                secretImageBox.Image = (Image)secretImage;
            }
            catch (Exception E)
            {
                MessageBox.Show(
                    E.ToString(),
                    "Error",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error);
            }
        }