| | |
| | | |
| | | dialog.Show(); |
| | | |
| | | //btnCancel.MouseDownEventHandler += (sender, e) => { |
| | | // btnCancel.IsSelected = true; |
| | | //}; |
| | | btnCancel.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | //btnCancel.IsSelected = false; |
| | | dialog.Close(); |
| | | }; |
| | | //btnConfirm.MouseDownEventHandler += (sender, e) => { |
| | | // btnConfirm.IsSelected = true; |
| | | //}; |
| | | EditParaterEvent(btnConfirm, errorId_IsNullOrEmpty, errorId_ContainsPar, baseList, etParater, callBackAction, |
| | | contentView, btnLine, btnCancel, editView, dialog, titleId); |
| | | } |
| | |
| | | /// <param name="titleId"></param> |
| | | /// <param name="msgId"></param> |
| | | /// <param name="callBackAction"></param> |
| | | public void TipMsg(int titleId, int msgId, Action callBackAction) |
| | | public void TipOptionMsg(int titleId, int msgId, Action callBackAction) |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = msgId, |
| | | IsMoreLines = true, |
| | | }; |
| | | contentView.AddChidren(btnMsg); |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="titleId"></param> |
| | | /// <param name="msgId"></param> |
| | | public void TipMsg(int titleId, int msgId) |
| | | public void TipMsg(int titleId, int msgId,Action action = null) |
| | | { |
| | | Dialog dialog = new Dialog() |
| | | { |
| | |
| | | TextColor = CSS_Color.TextualColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextID = msgId, |
| | | IsMoreLines = true, |
| | | }; |
| | | contentView.AddChidren(btnMsg); |
| | | |
| | |
| | | btnConfirm.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | btnConfirm.IsSelected = false; |
| | | action?.Invoke(); |
| | | dialog.Close(); |
| | | }; |
| | | |