private void frmMain_Loaded(object sender, RoutedEventArgs e) { myDoughnutMachine = new DoughnutMachine(); myDoughnutMachine.DoughnutComplete += new DoughnutMachine.DoughnutCompleteDelegate(DoughnutCompleteHandler); cmbType.ItemsSource = PriceList; cmbType.DisplayMemberPath = "Key"; cmbType.SelectedValuePath = "Value"; }
private void frmMain_Loaded(object sender, RoutedEventArgs e) { myDoughnutMachine = new DoughnutMachine(); myDoughnutMachine.DoughnutComplete += new DoughnutMachine.DoughnutCompleteDelegate(DoughnutCompleteHandler); }