private void GenerateCodeCommand_Executed() { var prepreq = new Messaging.Requests.PrepareForGenerationRequest(); Messenger.Default.Send(prepreq); var s = TLCGenIntegrityChecker.IsControllerDataOK(_plugin.Controller); if (s == null) { _codeGenerator.GenerateSourceFiles(_plugin.Controller, Path.GetDirectoryName(_plugin.ControllerFileName)); Messenger.Default.Send(new ControllerCodeGeneratedMessage()); } else { MessageBox.Show(s, "Fout in controller"); } }
private void GenerateCodeCommand_Executed(object prm) { var prepreq = new Messaging.Requests.PrepareForGenerationRequest(_Plugin.Controller); GalaSoft.MvvmLight.Messaging.Messenger.Default.Send(prepreq); string s = TLCGenIntegrityChecker.IsControllerDataOK(_Plugin.Controller); if (s == null) { _CodeGenerator.GenerateSourceFiles(_Plugin.Controller, Path.GetDirectoryName(_Plugin.ControllerFileName)); Messenger.Default.Send(new ControllerCodeGeneratedMessage()); } else { MessageBox.Show(s, "Fout in conflictmatrix"); } }
private void GenerateControllerCommand_Executed(object obj) { // Request to process all synchronisation data from matrix to model Messenger.Default.Send(new ProcessSynchronisationsRequest()); string s = TLCGenIntegrityChecker.IsControllerDataOK(TLCGenControllerDataProvider.Default.Controller); if (s == null) { SelectedGenerator.Generator.GenerateController(); MessengerInstance.Send(new ControllerCodeGeneratedMessage()); } else { TLCGenDialogProvider.Default.ShowMessageBox(s + "\n\nKan regeling niet genereren.", "Error bij genereren: fout in regeling"); } }