public GlobalStatMultTimesForm(TreeNode Node) { InitializeComponent(); // Set our node and object this.Node = Node; this.Obj = (GlobalStatMultTimes)Node.Tag; List <String> Params = Obj.GetParams(); int j = 0; // Add each global item to the list foreach (KeyValuePair <string, string> I in StatsConstants.PythonGlobalVars) { StatName.Items.Add(new KeyValuePair(I.Key, I.Value)); if (I.Key == Params[1]) { StatName.SelectedIndex = j; } j++; } // set condition value ValueBox.Value = Int32.Parse(Params[2]); AwardId = Params[3]; }
public GlobalStatMultTimesForm(TreeNode Node) { InitializeComponent(); // Set our node and object this.Node = Node; this.Obj = (GlobalStatMultTimes)Node.Tag; List<String> Params = Obj.GetParams(); int j = 0; // Add each global item to the list foreach (KeyValuePair<string, string> I in StatsConstants.PythonGlobalVars) { StatName.Items.Add(new KeyValuePair(I.Key, I.Value)); if (I.Key == Params[1]) StatName.SelectedIndex = j; j++; } // set condition value ValueBox.Value = Int32.Parse(Params[2]); AwardId = Params[3]; }