예제 #1
0
 /// <summary>
 /// 检查画板对象是否为null,为null创建
 /// </summary>
 private void CheckPaintBoard()
 {
     if (_paintingBoardWin == null)
     {
         // 第一次进入 加载win
         _paintingBoardWin = AppUtils.GetPaintingBoardWinInstance();
         _transparentBoardController = _paintingBoardWin.MyPaintingBoard;
         _paintingBoardWin.Loaded += delegate (object sender, RoutedEventArgs args)
         {
             this.Owner = _paintingBoardWin;
         };
     }
 }
예제 #2
0
 /// <summary>
 /// 设置画笔的宽度
 /// </summary>
 private void SetPenWidth()
 {
     double penWidth = GetPenWidth();
     AppUtils.SendMessage(penWidth, AppConstants.MSG_GLOBAL_SETPENWIDTH);
 }