Beispiel #1
0
        private void ShowWindStatus(WindDownloadStatus item)
        {
            toolStripLbl.Text  = item.Text;
            toolStripLbl.Image = item.Image;

            statusLbl.Text = "Status : " + item.Text;
            statusPicBox.BackgroundImage = item.Image;
        }
        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);
        }
Beispiel #3
0
        public void Init(
            ToolStripStatusLabel toolStripLbl,
            Locator <IWindTableCollection> windTableLocator,
            WindDownloadStatus status)
        {
            this.toolStripLbl     = toolStripLbl;
            this.windTableLocator = windTableLocator;
            ShowWindStatus(status);
            windAvailable = false;
            SetButtonColorStyles();

            downloadBtn.Click += async(s, e) => await DownloadWind();

            saveFileBtn.Click += SaveFile;
            loadFileBtn.Click += (s, e) => LoadFile(s, e);
        }