Exemple #1
0
        private void Path_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            try
            {
                switch (DockDirection)
                {
                case DockArrow.LeftUp:
                case DockArrow.RightUp:
                    PNNotesOperations.ShiftDockDown(DockDirection);
                    break;

                case DockArrow.LeftDown:
                case DockArrow.RightDown:
                    PNNotesOperations.ShiftDockUp(DockDirection);
                    break;

                case DockArrow.TopLeft:
                case DockArrow.BottomLeft:
                    PNNotesOperations.ShiftDockRight(DockDirection);
                    break;

                case DockArrow.TopRight:
                case DockArrow.BottomRight:
                    PNNotesOperations.ShiftDockLeft(DockDirection);
                    break;
                }
            }
            catch (Exception ex)
            {
                PNStatic.LogException(ex);
            }
        }