private async void Button_start_Click(object sender, EventArgs e) { if (_module.GetStatusCache()) { await _module.Stop(); label_status.Text = @"Stopped"; label_status.ForeColor = Color.DarkRed; button_start.Text = @"Start"; } else { await _module.Start(); label_status.Text = @"Scanning"; label_status.ForeColor = Color.Green; button_start.Text = @"Stop"; } _icon.Invalidate(); }