Ejemplo n.º 1
0
 private void comboBoxRecipient_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (null != comboBoxSource.SelectedItem && null != comboBoxRecipient.SelectedItem)
     {
         ModelInfo sModelInfo = (ModelInfo)comboBoxSource.SelectedItem;
         ModelInfo rModelInfo = (ModelInfo)comboBoxRecipient.SelectedItem;
         if (sModelInfo.ModelId == rModelInfo.ModelId)
         {
             labelSameModel.Visibility = System.Windows.Visibility.Visible;
         }
         else
         {
             labelSameModel.Visibility = System.Windows.Visibility.Hidden;
             if (selectedViewType == ViewType.ThreeD)
             {
                 DisplayCameraView(sModelInfo, rModelInfo);
             }
             else
             {
                 DisplayPlanView(sModelInfo, rModelInfo, selectedViewType);
             }
             //map info will be stored in the recipient document
             viewConfig = ViewConfigDataStorageUtil.GetViewConfiguration(rModelInfo.ModelDoc);
         }
     }
 }
        private void buttonApply_Click(object sender, RoutedEventArgs e)
        {
            var savedStorage = ViewConfigDataStorageUtil.StoreViewConfiguration(rModelInfo.ModelDoc, ViewConfig);

            if (savedStorage)
            {
                DialogResult = true;
            }
        }