Exemple #1
0
        public MainView()
        {
            InitializeComponent();

            processor = new Processor();

            mathPresenter = new MathPresenter(this.mathControl, processor);
            mathPresenter.PropertyChanged += mathPresenter_PropertyChanged;
            this.mathControl.Presenter     = mathPresenter;
            graphsPresenter = new GraphsPresenter(this.graphsControl, processor);
            this.graphsControl.Presenter     = graphsPresenter;
            truthTablePresenter              = new TruthTablePresenter();
            this.truthTableControl.Presenter = truthTablePresenter;

            LoadSettings();

            SetFocus();
        }
        public GraphsControl(GraphsPresenter presenter)
        {
            this.presenter = presenter;

            InitializeComponent();
        }