예제 #1
0
        void ManualMouseClick(MouseEventArgs e, SelectionModes mode)
        {
            if (e.Button == System.Windows.Forms.MouseButtons.Left)
            {
                SelectionPoint = PointToClient(Cursor.Position);
                SelectionMap   = new Dictionary <int, NodeModel>();

                // on double click event, mouse up will fire after so don't set selection mode back to single
                if (SelectionMode == SelectionModes.None)
                {
                    SelectionMode = mode;
                }
            }
            // back button zoom out
            else if (e.Button == MouseButtons.XButton1)
            {
                Model.NavBack();
            }

            // forward button zoom in
            else if (e.Button == MouseButtons.XButton2)
            {
                Model.NavForward();
            }
        }
예제 #2
0
 private void ForwardButton_Click(object sender, EventArgs e)
 {
     Model.NavForward();
 }