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); }
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; } }
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); }
private void ToAddMessagesOnPainter(UsCtrlExInfors lmp, CallBackFunc CallBack) { UsCtrlLayers.ToAddMessagesLabel(lmp, CallBack); }