/// <summary> /// Pretend we are doing some operation on a complex parameter set. /// </summary> /// <param name="composition"></param> public void BrewFrappuccino(BrewFrappuccino.CompositionData composition) { ShowTheMessage(string.Format("Making a {0} mL frappuccino with cream type \"{1}\"{2}.", composition.Volume, composition.Cream, composition.DeCaffeinated ? ", decaffeinated." : "")); }
/// <summary> /// Initialize from a given composition object. /// </summary> /// <param name="theData"></param> public FrappuccinoCompositionEditor(BrewFrappuccino.CompositionData theData) { InitializeComponent(); mData = theData; }