Example #1
0
        private void ToEditLabelExOutSide(string CommandName, IControlExProperties ctrl)
        {
            UsCtrlExInfors exInfor = null;

            if (ctrl.GetLayerType() == ScreenShotCutLib.Enums.EnLayerType.Label)
            {
                var lblEx = ctrl as LabelEx;
                exInfor = lblEx?.Tag as UsCtrlExInfors;
            }
            RunCommand?.Invoke(CommandName, exInfor);
        }
Example #2
0
        private void RunPaintCommand(string command, UsCtrlExInfors obj)
        {
            switch (command)
            {
            case "EditLabelEx":
                if (obj.LayerType == ScreenShotCutLib.Enums.EnLayerType.Label)
                {
                    EditLabelMessage(obj as UsLabelExInfors);
                }
                break;

            default:
                break;
            }
        }
Example #3
0
 public void ToAddMessagesLabel(UsCtrlExInfors lmp, CallBackFunc CallBack)
 {
     if (lmp.LayerType == ScreenShotCutLib.Enums.EnLayerType.Label)
     {
         if (string.IsNullOrEmpty(lmp.ControlName?.Trim()))
         {
             AddMessagesCallBack = CallBack;
             CtrlExInfor         = lmp;
             Switcher.IsAddingOrEditingMessageLabel = true;
         }
         else
         {
             AddMessagesLable(lmp as UsLabelExInfors);
             CallBack?.Invoke();
         }
     }
     else
     {
         CallBack?.Invoke();
     }
 }
 public void ToAddMessagesLabel(UsCtrlExInfors lmp, CallBackFunc callBack)
 {
     UsCtrlBackGroundImage.ToAddMessagesLabel(lmp, callBack);
 }
Example #5
0
 private void ToAddMessagesOnPainter(UsCtrlExInfors lmp, CallBackFunc CallBack)
 {
     UsCtrlLayers.ToAddMessagesLabel(lmp, CallBack);
 }