示例#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;
 }
示例#2
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;
 }