Exemple #1
0
 private void OnInit(object sender, EventArgs e)
 {
     _myShirt = new Shirt();
     PopulateListbox(ShirtChoice, Enum.GetValues(typeof (ShirtTypes)));
     PopulateListbox(ShirtColorChoice, Enum.GetValues(typeof (ShirtColors)));
     PopulateListbox(ButtonChoice, Enum.GetValues(typeof (ButtonColors)));
     _myShirt.ButtonColorChanged += UiButtonColorChanged;
 }
 private void OnInit(object sender, EventArgs e)
 {
     _myShirt = new Shirt();
     PopulateListbox(ShirtChoice, Enum.GetValues(typeof(ShirtTypes)));
     PopulateListbox(ShirtColorChoice, Enum.GetValues(typeof(ShirtColors)));
     PopulateListbox(ButtonChoice, Enum.GetValues(typeof(ButtonColors)));
     _myShirt.ButtonColorChanged += UiButtonColorChanged;
 }