private void notifyIcon_Click(object sender, EventArgs args) { if (args is MouseEventArgs mouseArgs && mouseArgs.Button == MouseButtons.Left) { StartStopClick?.Invoke(this, EventArgs.Empty); } }
private void enableDisableButton_Click(object sender, EventArgs args) { StartStopClick?.Invoke(this, EventArgs.Empty); }