Hi guys,
I’m working on my assignment for school, end I got stuck. I have workflow end my host application. On my host app is one combo box. I need to write code for my ifElseBranchActivity in workflow.
Something like this:
if (comboBox1.SelectedItem == "option1")
{
//do some code
}
The problem is, it doesnt work this way in workflow, so how can I do that?
//Host
Dictionary<string, object> parametars = new Dictionary<string, object>();
parametars.Add("option1",parametars);
parametars.Add("option2", parametars);
parametars.Add("option3", parametars);
comboBox1.DataSource = new BindingSource(parametars, null);
comboBox1.DisplayMember = "Key";
comboBox1.ValueMember = "Value";
//WorkFlow
public string option1 { get; set; }
public string option2 { get; set; }
public string option3 { get; set; }