private void BusinessflowConfig_Click(object sender, RoutedEventArgs e) { if (CheckCurrentRunnerIsNotRuning()) { return; } BusinessFlow bf = (BusinessFlow)((RunnerItemPage)sender).ItemObject; BusinessFlowRunConfigurationsPage varsPage = new BusinessFlowRunConfigurationsPage(mRunner, bf); varsPage.ShowAsWindow(); }
private void BusinessflowConfig_Click(object sender, RoutedEventArgs e) { if (CheckCurrentRunnerIsNotRuning()) { return; } BusinessFlow bf = (BusinessFlow)((RunnerItemPage)sender).ItemObject; ObservableList <BusinessFlow> prevBFs = new ObservableList <BusinessFlow>(); for (int i = 0; i < mBusinessflowRunnerItems.IndexOf((RunnerItemPage)sender); i++) { prevBFs.Add((BusinessFlow)((RunnerItemPage)mBusinessflowRunnerItems[i]).ItemObject); } BusinessFlowRunConfigurationsPage varsPage = new BusinessFlowRunConfigurationsPage(mRunner, bf, prevBFs); varsPage.ShowAsWindow(); }