public static void Execute(ProjectSetupWizard wizard) { Globals.RationallyAddIn.RebuildTree(Globals.RationallyAddIn.Application.ActiveDocument); //validation is done here, so just pick the filled in rows List <FlowLayoutStakeholder> filledInPanels = wizard.TableLayoutMainContentStakeholders.Stakeholders; filledInPanels.ForEach(filledInPanel => filledInPanel.UpdateModel()); Log.Debug("filled in panels:" + filledInPanels.Count); }
public static void Execute(ProjectSetupWizard wizard) { Globals.RationallyAddIn.RebuildTree(Globals.RationallyAddIn.Application.ActiveDocument); //validation is done here, so just pick the filled in rows List <FlowLayoutDocument> filledInPanels = wizard.TableLayoutMainContentDocuments.Documents.Where(doc => !IsNullOrEmpty(doc.FilePath.Text)).ToList(); filledInPanels.ForEach(filledInPanel => filledInPanel.UpdateModel()); Log.Debug("filled in panels:" + filledInPanels.Count); }
public static void Execute(ProjectSetupWizard wizard) { Globals.RationallyAddIn.RebuildTree(Globals.RationallyAddIn.Application.ActiveDocument); //select filled in force rows List <DataGridViewRow> forceRows = wizard.TableLayoutMainContentForces.ForcesDataGrid.Rows.Cast <DataGridViewRow>().Where(row => !IsNullOrEmpty(row.Cells[1].Value?.ToString())).ToList(); Log.Debug("Found " + forceRows.Count + " filled in force rows."); ProjectSetupWizard.Instance.ModelCopy.Forces = forceRows.Select(ConstructForce).ToList(); Log.Debug("Stored forces in model."); }
public static void Execute(ProjectSetupWizard wizard) { Globals.RationallyAddIn.RebuildTree(Globals.RationallyAddIn.Application.ActiveDocument); wizard.TableLayoutMainContentAlternatives.Alternatives.ForEach(a => a.UpdateModel()); }
public static void Execute(ProjectSetupWizard wizard) => UpdateGeneralInformationInModel(wizard.tableLayoutMainContentGeneral.TextAuthor.Text, wizard.tableLayoutMainContentGeneral.TextDecisionTopic.Text, wizard.tableLayoutMainContentGeneral.DateTimePickerCreationDate.Value.ToLongDateString(), wizard.tableLayoutMainContentGeneral.TextVersion.Text);