private void ResizePane_KeyDown(object sender, KeyEventArgs e) { if (IsPreviewKeyPressed() && !_isPreviewed) { _previewCallBack?.Invoke(); } }
private void PreviewHandler(Action <PowerPoint.ShapeRange> previewAction, int minNoOfSelectedShapes) { Focus(); _previewCallBack = delegate { var selectedShapes = GetSelectedShapes(); ModifySelectionAspectRatio(); Preview(selectedShapes, previewAction, minNoOfSelectedShapes); _isPreviewed = true; }; if (IsPreviewKeyPressed()) { _previewCallBack.Invoke(); } }
private void PreviewHandler(Action <PowerPoint.ShapeRange, float, float, bool> previewAction) { Focus(); _previewCallBack = delegate { var selectedShapes = GetSelectedShapes(); var slideWidth = this.GetCurrentPresentation().SlideWidth; var slideHeight = this.GetCurrentPresentation().SlideHeight; ModifySelectionAspectRatio(); Preview(selectedShapes, slideWidth, slideHeight, previewAction); _isPreviewed = true; }; if (IsPreviewKeyPressed()) { _previewCallBack.Invoke(); } }
private void PreviewHandler(Action<PowerPoint.ShapeRange, float, float, bool> previewAction) { Focus(); _previewCallBack = delegate { var selectedShapes = GetSelectedShapes(); var slideWidth = this.GetCurrentPresentation().SlideWidth; var slideHeight = this.GetCurrentPresentation().SlideHeight; ModifySelectionAspectRatio(); Preview(selectedShapes, slideWidth, slideHeight, previewAction); _isPreviewed = true; }; if (IsPreviewKeyPressed()) { _previewCallBack.Invoke(); } }
private void PreviewHandler(Action<PowerPoint.ShapeRange> previewAction, int minNoOfSelectedShapes) { Focus(); _previewCallBack = delegate { var selectedShapes = GetSelectedShapes(); ModifySelectionAspectRatio(); Preview(selectedShapes, previewAction, minNoOfSelectedShapes); _isPreviewed = true; }; if (IsPreviewKeyPressed()) { _previewCallBack.Invoke(); } }