Exemplo n.º 1
0
        private void mbtnDefFac_Click(object sender, EventArgs e)
        {
            var tmpFactors = MakeDeepCopy(marrFactorInfo); // keep copies

            frmDefFactors mfrmDefFactors;

            if (mblfactorsLoaded)
            {
                mfrmDefFactors = new frmDefFactors(marrFactorInfo);
            }
            else
            {
                mfrmDefFactors = new frmDefFactors();
            }

            if (mfrmDefFactors.ShowDialog() == DialogResult.OK)
            {
                marrFactorInfo   = mfrmDefFactors.FactorInfoArray;
                mblfactorsLoaded = true;

                SetFactorAssignments();
                FillListView();
            }
            else //User cancels the factor changes, so revert to previous.
            {
                marrFactorInfo = tmpFactors;
            }
        }
Exemplo n.º 2
0
        private void mbtnDefFac_Click(object sender, EventArgs e)
        {
            var tmpFactors = MakeDeepCopy(marrFactorInfo); // keep copies

            frmDefFactors mfrmDefFactors;

            if (mblfactorsLoaded)
                mfrmDefFactors = new frmDefFactors(marrFactorInfo);
            else
                mfrmDefFactors = new frmDefFactors();

            if (mfrmDefFactors.ShowDialog() == DialogResult.OK)
            {
                marrFactorInfo = mfrmDefFactors.FactorInfoArray;
                mblfactorsLoaded = true;

                SetFactorAssignments();
                FillListView();
            }
            else //User cancels the factor changes, so revert to previous.
            {
                marrFactorInfo = tmpFactors;
            }
        }