public BusinessFlowRunConfigurationsPage(GingerRunner runner, BusinessFlow businessFlow, ObservableList <BusinessFlow> prevBusinessFlowsInFlow) { InitializeComponent(); mWindowMode = eWindowMode.Configuration; mGingerRunner = runner; mBusinessFlow = businessFlow; mContext = new Context() { BusinessFlow = businessFlow, Runner = runner }; mPrevBusinessFlowsInFlow = prevBusinessFlowsInFlow; mBusinessFlow.SaveBackup(); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(MandatoryBusinessFlowCB, CheckBox.IsCheckedProperty, businessFlow, nameof(BusinessFlow.Mandatory), BindingMode.TwoWay); RunDescritpion.Init(mContext, businessFlow, nameof(BusinessFlow.RunDescription)); grdVariables.btnEdit.AddHandler(Button.ClickEvent, new RoutedEventHandler(EditVar)); grdVariables.AddToolbarTool("@Undo_16x16.png", "Reset " + GingerDicser.GetTermResValue(eTermResKey.Variables) + " to Original Configurations", new RoutedEventHandler(ResetBusFlowVariables)); grdVariables.AddToolbarTool("@Share_16x16.png", "Share Selected " + GingerDicser.GetTermResValue(eTermResKey.Variables) + " Value to all Similar " + GingerDicser.GetTermResValue(eTermResKey.Variables) + " in " + GingerDicser.GetTermResValue(eTermResKey.RunSet), new RoutedEventHandler(CopyBusFlowVariables)); grdVariables.RowDoubleClick += VariablesGrid_grdMain_MouseDoubleClick; SetVariablesGridView(); LoadGridData(); UpdateEditVariablesTabVisual(); LoadBusinessFlowcontrols(businessFlow); UpdateFlowControlTabVisual(); mBusinessFlow.BFFlowControls.CollectionChanged += BFFlowControls_CollectionChanged; }
public BusinessFlowRunConfigurationsPage(BusinessFlowExecutionSummary businessFlowExecSummary) { InitializeComponent(); mWindowMode = eWindowMode.SummaryView; btnAutoCreateDescription.Visibility = System.Windows.Visibility.Collapsed; SetVariablesGridView(); LoadGridData(); }