RPS.Screensaver.MouseClick C# (CSharp) Method

MouseClick() private method

private MouseClick ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void MouseClick(object sender, MouseEventArgs e) {
            if (!this.config.Visible) {
                //if (this.config.hiding) return null;
                if (this.config.getPersistantBool("browseMouse")) {
                    switch (e.Button) {
                        case MouseButtons.Left:
                            this.actionNext(1);
                            break;
                        case MouseButtons.Right:
                            this.actionPrevious(1);
                            break;
                    }
                } else {
                    if (!this.config.getPersistantBool("ignoreMouseClick")) this.OnExit();
                }
            }
        }