コード例 #1
0
        /// <summary>
        /// Will show a semantic zoom containing the different structure class-type and details.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void structTypeSearch_Click(object sender, RoutedEventArgs e)
        {
            ContentDialogSemanticZoom newDialog = new ContentDialogSemanticZoom(Dictionaries.DatabaseLiterals.TableStructure, Dictionaries.DatabaseLiterals.FieldStructureClass, Dictionaries.DatabaseLiterals.FieldStructureDetail);

            newDialog.userHasSelectedAValue += strucViewModel.NewDialog_userHasSelectedAValue;
            ContentDialogResult results = await newDialog.ShowAsync();
        }
コード例 #2
0
        /// <summary>
        /// Will be triggered whenever the user wants to see the complete lithologic type list.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void EarthLithoSearch_Click(object sender, RoutedEventArgs e)
        {
            ContentDialogSemanticZoom newDialog = new ContentDialogSemanticZoom(Dictionaries.DatabaseLiterals.TableEarthMat, Dictionaries.DatabaseLiterals.FieldEarthMatLithgroup, Dictionaries.DatabaseLiterals.FieldEarthMatLithdetail);

            newDialog.userHasSelectedAValue += NewDialog_userHasSelectedAValue;
            ContentDialogResult results = await newDialog.ShowAsync();
        }