public void ShowConfirmForm() { var frm = new CompleteAxisForm() { OnOkPressed = f => { CompleteAxisForm cf = f as CompleteAxisForm; var display = cf.CompleteStatus.GetAttribute <DisplayAttribute>(); App.Store.Dispatch(new SysActions.ShowNotification(new SysNotificationMsg() { Content = "您点击了确认,且选择了 " + display?.Name })); }, OnCancelPressed = f => { CompleteAxisForm cf = f as CompleteAxisForm; var display = cf.CompleteStatus.GetAttribute <DisplayAttribute>(); App.Store.Dispatch(new SysActions.ShowNotification(new SysNotificationMsg() { Content = "您点击了取消,且选择了 " + display?.Name })); } }; App.Store.Dispatch(new SysActions.ShowFormView("确认完成该轴", frm)); }
public void CompletedTaskAxisDoing(object row) { var axis = (MqTaskAxis)row; var frm = new CompleteAxisForm() { OnOkPressed = f => { CompleteAxisForm cf = f as CompleteAxisForm; var display = cf.CompleteStatus.GetAttribute <DisplayAttribute>(); App.Store.Dispatch(new DMesActions.CompletedSchAxis(axis.maccode, axis.axiscode, display.Name)); App.Store.Dispatch(new SysActions.ShowNotification(new SysNotificationMsg() { Content = $"轴{axis.axiscode} " + display.Name })); } }; App.Store.Dispatch(new SysActions.ShowFormView("确认完成该轴", frm, false)); }