public DeLongChartPresenter(IDeLongChartView view)
        {
            _view = view;
            _view.Presenter = this;
            _dataConnector = new DataConnector();
            _chart = new Chart(Graphics.FromHwnd(_view.DrawPanelCanvas),
                _dataConnector.GetDeLongImages(),
                _dataConnector.GetDeLongChartSizingData());

            SetVisibilityCheckBoxesToTrue();
            RefreshSelectedMaterials();
        }
        //used when adding new material
        public MaterialModificationPresenter(IMaterialModificationView view, object norm)
        {
            _view = view;
            _dataConnector = new DataConnector();
            view.Presenter = this;
            _workingMode = WindowMode.Mode.AddNew;

            if (_view.MaterialType == MaterialType.BaseMaterial)
                _normUnderConstruction = norm as BaseNorm;
            else
                _normUnderConstruction = norm as AdditiveNorm;
        }
        //used when modifying material
        public MaterialModificationPresenter(IMaterialModificationView view, object norm, object materialToModify)
        {
            _workingMode = WindowMode.Mode.ModifyCurrent;
            _view = view;
            _dataConnector = new DataConnector();
            view.Presenter = this;
            if (_view.MaterialType == MaterialType.BaseMaterial)
                _normUnderConstruction = norm as BaseNorm;
            else
                _normUnderConstruction = norm as AdditiveNorm;

            BindToControls(materialToModify);
        }
        public SchaefflerMinimapPresenter(ISchaefflerMinimapView view, MinimapCombination minimapCombination, double additionalMaterialQuantity)
        {
            _view = view;
            _view.Presenter = this;
            _dataConnector = new DataConnector();
            _minimapCombination = minimapCombination;
            _additionalMaterialQuantity = additionalMaterialQuantity;

            LoadChartData();
            DrawLines();

            SaveMinimap();
        }
 public PartialAccesAddMaterialPresenter(IAdditiveMaterialView view)
 {
     _view = view;
     _view.Presenter = this;
     _dataConnector = new DataConnector();
 }
 public MaterialDatabasePartialAccesPresenter(IMaterialDatabaseView view)
 {
     _view = view;
     view.Presenter = this;
     _dataConnector = new DataConnector();
 }
 public NormAdderPresenter(INormAdderView view)
 {
     _view = view;
     _view.Presenter = this;
     _dataConnector = new DataConnector();
 }
 private void paintEvent(object sender, PaintEventArgs e)
 {
     DataConnector a = new DataConnector();
     Image newImage = a.GetKsLogo();
     e.Graphics.DrawImage(newImage, new PointF(0, 30));
 }
 private void AddWrcLegendImage(Section section)
 {
     DataConnector dataConnector = new DataConnector();
     section.AddImage(dataConnector.PathToWrcDiagramLegendImage());
 }
 private void AddSchaefflerLegendImage(Section section)
 {
     DataConnector dataConnector = new DataConnector();
     section.AddImage(dataConnector.PathToSchaefflerDiagramLegendImage());
 }
 private void AddMinimapChartImage(Section section)
 {
     DataConnector dataConnector = new DataConnector();
     section.AddImage(dataConnector.PathToMinimapChartImage());
 }
 public void Init()
 {
     _dataConnector = new DataConnector("saf");
     _dataCreator = new SampleDataCreator();
 }