示例#1
0
        public MainForm()
        {
            // init view
            InitializeComponent();
            tabControl1.SelectedIndex = 0;
            labelArrPower.Rtf = @"{\rtf1\ansi\deff0 Load model, load texture, then click simulate. }";

            // init model
            simInput.Array = new ArraySpec();
            InitTimeAndPlace();
            InitializeArraySpec();
            InitializeConditions();
            CalculateSimStepGui();

            // init subviews
            arrayLayoutForm = new ArrayLayoutForm(simInput.Array);
            cellParamsForm = new CellParamsForm(simInput);
            glControl.Array = simInput.Array;
            simInputControls.SimInput = simInput;
            InitOutputView();
        }
示例#2
0
 private void InitInputView()
 {
     arrayLayoutForm = new ArrayLayoutForm(simInput.Array);
     cellParamsForm = new CellParamsForm(simInput);
     glControl.Array = simInput.Array;
     simInputControls.SimInput = simInput;
 }