コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            SplitWizardShareObject dataSource = (SplitWizardShareObject)DataContext;

            DataViewerUserControl content = new DataViewerUserControl(dataSource.SelectedLayerToSplit);

            content.IsHighlightFeatureOnly = dataSource.UseSelectedFeaturesOnly;
            content.ShowDialog();
        }
        private void SplitWizardSaveResultsUserControl_Loaded(object sender, RoutedEventArgs e)
        {
            SplitWizardShareObject entity = DataContext as SplitWizardShareObject;

            if (entity != null && !string.IsNullOrEmpty(FolderHelper.LastSelectedFolder))
            {
                entity.OutputPath = FolderHelper.LastSelectedFolder;
            }
        }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     FolderHelper.OpenFolderBrowserDialog((tmpDialog, tmpResult) =>
     {
         if (tmpResult == System.Windows.Forms.DialogResult.OK || tmpResult == System.Windows.Forms.DialogResult.Yes)
         {
             SplitWizardShareObject entity = DataContext as SplitWizardShareObject;
             if (entity != null)
             {
                 entity.OutputPath = tmpDialog.SelectedPath;
             }
         }
     }, tmpDialog =>
     {
         tmpDialog.Description = GisEditor.LanguageManager.GetStringResource("OpenFolderBrowserDialogDescription");
     });
 }