internal VisualizationOutputEditorDialog(VisualizationOutputData visualizationOutput)
        {
            InitializeComponent();
            DialogResult = DialogResult.Cancel;

            Text = Language.VisualizationOutputEditor.Text;
            labelFluxComponent.Text = Language.VisualizationOutputEditor.LabelFluxComponent;
            labelTimeStep.Text      = Language.VisualizationOutputEditor.LabelTimeStep;
            labelCenter.Text        = Language.VisualizationOutputEditor.LabelCenter;
            labelSize.Text          = Language.VisualizationOutputEditor.LabelSize;
            buttonOK.Text           = Language.DialogGeneral.ButtonOK;
            buttonCancel.Text       = Language.DialogGeneral.ButtonCancel;

            comboBoxFluxComponent.DataSource = Enum.GetValues(typeof(FluxComponent));

            VisualizationOutput = new VisualizationOutputData(visualizationOutput);
            comboBoxFluxComponent.DataBindings.Add("SelectedItem", VisualizationOutput, "Component");
            numericUpDownTimeStep.DataBindings.Add("Value", this, "VisualizationOutput_TimeStep");
            vectorEditorCenter.DataBindings.Add("Value", VisualizationOutput, "Center");
            vectorEditorSize.DataBindings.Add("Value", VisualizationOutput, "Size");
        }
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            ListBox         box  = (sender as ToolStripButton).Tag as ListBox;
            ProjectDataBase data = null;

            if (box == listBoxSrc)
            {
                data = new SourceData();
            }
            else if (box == listBoxFlx)
            {
                data = new FluxAnalysisData();
            }
            else if (box == listBoxVis)
            {
                data = new VisualizationOutputData();
            }
            else
            {
                return;
            }
            box.Items.Add(data);
        }