SetParams() 공개 메소드

Sets the params for this condition
public SetParams ( List Params ) : void
Params List
리턴 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;
        }