BF2Statistics.MedalData.GlobalStatMultTimesForm.FinishBtn_Click C# (CSharp) Method

FinishBtn_Click() private method

private FinishBtn_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void FinishBtn_Click(object sender, EventArgs e)
        {
            // Tell the base condition form that we modifed the condition
            base.Canceled = false;

            // First param is always the python method name
            List<string> Params = new List<string>();

            // Always add the python function name first
            Params.Add("global_stat_mult_times");

            // 1st param
            KeyValuePair I = (KeyValuePair)StatName.SelectedItem;
            Params.Add(I.Key);

            //2nd Param
            Params.Add(((int)ValueBox.Value).ToString());

            // 3rd Param
            Params.Add(AwardId);

            // Create the new Stat Object?
            if (Obj == null)
                Obj = new GlobalStatMultTimes(Params);
            else
                Obj.SetParams(Params);

            // Close the form
            this.Node.Tag = Obj;
            MedalDataEditor.ChangesMade = true;
            this.DialogResult = DialogResult.OK;
        }