Example #1
0
        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;
        }
Example #2
0
 private void cmbAppBar_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
 {
     ChangeUnits(ConversionSet.GetTypeByIndex(cmbAppBar.SelectedIndex));
 }