public void InitializeActions()
 {
     isRadioSelectedCondition = new Condition();
     deleteAction             = new Action(DoDeleteRadio, isRadioSelectedCondition, DeleteRadioStationButton);
     editAction        = new Action(DoEditRadio, isRadioSelectedCondition, EditRadioStationButton);
     selectRadioAction = new Action(SelectRadio, radioStationListBox);
     addAction         = new Action(DoAddRadio, AddRadioStationButton);
 }
示例#2
0
 public void InitializeActions()
 {
     isPlayingCondition       = new Condition();
     isRadioSelectedCondition = new Condition();
     isFileSelectedCondition  = new Condition();
     playAction        = new Action(DoPlay, new CompositeCondition(CompositeCondition.CompositionKind.And, new NegateCondition(isPlayingCondition), isRadioSelectedCondition), PlayButton);
     stopAction        = new Action(DoStop, isPlayingCondition, StopButton);
     selectRadioAction = new Action(SelectRadio, new NegateCondition(isPlayingCondition), listBoxRadio);
 }