private void MenuImageRotate180_Click(object sender, System.EventArgs e) { if (AppWorkspace.ActiveDocumentWorkspace != null) { HistoryFunction da = new RotateDocumentFunction(RotateType.Rotate180); AppWorkspace.ActiveDocumentWorkspace.ExecuteFunction(da); } }
private void OnMenuImageRotate90CWClick(object sender, EventArgs e) { if (base.AppWorkspace.ActiveDocumentWorkspace != null) { HistoryFunction function = new RotateDocumentFunction(RotateType.Clockwise90); base.AppWorkspace.ActiveDocumentWorkspace.ApplyFunction(function); } }