private void InitWindForm() { windFrm = new WindDataForm(); var presenter = new WindDataPresenter(windFrm, windTableLocator); windFrm.Init(windDataStatusLabel, presenter, WindDownloadStatus.WaitingManualDownload); }
public void Init( ToolStripStatusLabel toolStripLbl, WindDataPresenter presenter, WindDownloadStatus status) { this.presenter = presenter; this.toolStripLbl = toolStripLbl; ShowWindStatus(status); SetButtonColorStyles(); downloadBtn.Click += async(s, e) => await DownloadWind(); saveFileBtn.Click += SaveFile; loadFileBtn.Click += (s, e) => LoadFile(s, e); }
private void InitWindControl() { var presenter = new WindDataPresenter(windControl, windTableLocator); windControl.Init(windDataStatusLabel, presenter, WindDownloadStatus.WaitingManualDownload); }