Exemple #1
0
    private void cbDest_SelectedIndexChanged(object sender, EventArgs e)
    {
        //Gets the number of non-fitted variants to notify the user about what will be changed to fitted.
        int Count = 0;

        cbForce.Checked = false;
        string[] Dest = new string[cbDest.CheckedItems.Count];
        cbDest.CheckedItems.CopyTo(Dest, 0);
        foreach (string item in Dest)
        {
            if (item != "Base")
            {
                Count += SyncVar.Get_VariantAlternates(item);
            }
        }

        cbForce.Text = "Force " + Count + " Alternates to Fitted.";
        if (Count > 0)
        {
            cbForce.Enabled = true;
        }
        else
        {
            cbForce.Enabled = false;
        }
    }