コード例 #1
0
 /// <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." : ""));
 }
コード例 #2
0
 /// <summary>
 /// Initialize from a given composition object.
 /// </summary>
 /// <param name="theData"></param>
 public FrappuccinoCompositionEditor(BrewFrappuccino.CompositionData theData)
 {
     InitializeComponent();
     mData = theData;
 }