Example #1
0
 private void ChBCostPerUnit_CheckedChanged(object sender, EventArgs e)
 {
     if (NUQuantity.Value > 1)       // Needed because used for Cost_Changed event
     {
         //TTAltPrice.Show(MultiCost(), this.NUCost);
         TTAltPrice.SetToolTip(this.NUCost, MultiCost());
     }
 }
Example #2
0
        private void NUQuantity_ValueChanged(object sender, EventArgs e)
        {
            if (NUQuantity.Value > 1)
            {
                ChBCostPerUnit.Visible = true;
                ChBCostPerUnit.Enabled = true;
                NUQuantity.Size        = new Size(40, NUQuantity.Size.Height);

                TTAltPrice.SetToolTip(this.NUCost, MultiCost());
                //TTAltPrice.Show(MultiCost(),this.NUCost);
            }
            else
            {
                ChBCostPerUnit.Visible = false;
                ChBCostPerUnit.Enabled = false;
                NUQuantity.Size        = new Size(120, NUQuantity.Size.Height);
            }
        }