public Leiloes() { InitializeComponent(); var mainWindow = (MainWindow)Application.Current.MainWindow; ahref = mainWindow.ah; username = ahref.getUsername(); Categ.AddHandler(ComboBox.SelectionChangedEvent, new RoutedEventHandler(Search_Options_Changed)); SortPrice.AddHandler(ComboBox.SelectionChangedEvent, new RoutedEventHandler(Search_Options_Changed)); setLeiloes("", "Todos", "Preço menor"); }
public MeusLeiloes(String username) { InitializeComponent(); var mainWindow = (MainWindow)Application.Current.MainWindow; ahref = mainWindow.ah; Categ.AddHandler(ComboBox.SelectionChangedEvent, new RoutedEventHandler(Search_Options_Changed)); SortPrice.AddHandler(ComboBox.SelectionChangedEvent, new RoutedEventHandler(Search_Options_Changed)); Categoria.AddHandler(ComboBox.SelectionChangedEvent, new RoutedEventHandler(Search_Options_Changed)); DayCount.AddHandler(ComboBox.SelectionChangedEvent, new RoutedEventHandler(Search_Options_Changed)); this.username = username; setLeiloes("", "Todos", "Preço menor"); }