BF2Statistics.MedalData.ConditionListForm.Child_FormClosing C# (CSharp) Method

Child_FormClosing() private method

private Child_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e FormClosingEventArgs
return void
        private void Child_FormClosing(object sender, FormClosingEventArgs e)
        {
            ConditionForm C = Child.GetConditionForm();
            if (C == null)
                return;

            // Hide closing New Criteria form, because setting "Child" to a new window
            // will still display the old window below it until the new child closes.
            Child.Visible = false;
            Child = C;
            Child.FormClosing += AddNewCriteria;
            Child.ShowDialog();
        }