private void ChangeUnits(ConversionTypes type) { if (currentConversion != null && currentConversion.Type == type) { return; } data.Collection.Clear(); this.currentConversion = ConversionSet.GetSetByType(type); RetrieveUnits(); RetrieveFilters(); RefreshGridView(); this.cmbAppBar.SelectedIndex = currentConversion.Index; }
private void cmbAppBar_SelectionChanged_1(object sender, SelectionChangedEventArgs e) { ChangeUnits(ConversionSet.GetTypeByIndex(cmbAppBar.SelectedIndex)); }