private void ViewModel_ShowDialogWindowEvent(SystemMacroItemViewModel systemMacro) { this.systemMacro = systemMacro; var dlg = new MacroDataInputDialog(FanucCnc.Fanuc.CreateInstance(), systemMacro.Address + "", systemMacro.Title); dlg.SaveInputEvent += Dlg_SaveInputEvent; dlg.ShowDialog(); }
private void SysetmInfoViewModel_OpenDialogWidnowEvent(string arg1, string arg2, string arg3) { propName = arg1; var dlg = new MacroDataInputDialog(FanucCnc.Fanuc.CreateInstance(), arg2, arg3); dlg.SaveInputEvent += Dlg_SaveInputEvent; dlg.ShowDialog(); }
private void ViewModel_ShowLimitWindowEvent(Fanuc fanuc, MaintainSubLimitDto obj) { maintainSubLimitDto = obj; var dlg = new MacroDataInputDialog(fanuc, (obj.Type == "Up" ? obj.LimitUp : obj.LimitDown) + "", $"输入{obj.Title}"); dlg.SaveInputEvent += Dlg_SaveInputEvent; dlg.ShowDialog(); }
private void ViewModel_OpenDialogWindowEvent(SystemPmcItemViewModel arg1, string arg2, string arg3) { systemPmc = arg1; currentPropName = arg2; var dlg = new MacroDataInputDialog(FanucCnc.Fanuc.CreateInstance(), arg3, arg1.Title); dlg.SaveInputEvent += Dlg_SaveInputEvent; dlg.ShowDialog(); }