示例#1
0
 private void OnOrientationChanged(PageOrientation pageOrientation)
 {
     if (_diagram.PageSettings != null)
     {
         _diagram.OnPageOrientationChanged(pageOrientation);
     }
 }
示例#2
0
 /// <summary>
 /// Method to change the pageorientation
 /// </summary>
 /// <param name="pageOrientation"></param>
 internal void OnPageOrientationChanged(PageOrientation pageOrientation)
 {
     if (pageOrientation == PageOrientation.Portrait)
     {
         PortraitOrientation  = true;
         LandScapeOrientation = false;
     }
     else
     {
         PortraitOrientation  = false;
         LandScapeOrientation = true;
     }
 }