예제 #1
0
        private void LoadFactors()
        {
            _factors = UMLFactorCollection.GetFactors(false);
            BindingListView <UMLFactor> view = new BindingListView <UMLFactor>(_factors);

            this.uMLFactorCollectionBindingSource.DataSource = view;
            view.RemovingItem += new RemoveEventHandler <UMLFactor>(view_RemovingItem);
        }
예제 #2
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Do you want rest the factors", "", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                HelperEstimation.ResetProfile();

                _factors = UMLFactorCollection.GetFactors(true);

                BindingListView <UMLFactor> view = new BindingListView <UMLFactor>(_factors);
                this.uMLFactorCollectionBindingSource.DataSource = view;
                view.RemovingItem += new RemoveEventHandler <UMLFactor>(view_RemovingItem);
            }
        }