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

            statusLbl.Text = "Status : " + item.Text;
            statusPicBox.BackgroundImage = item.Image;
        }
Example #2
0
        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);
        }