Пример #1
0
 public void Exec(string CommandName, IAgProgressTrackCancel TrackCancel, IAgUiPluginCommandParameters Parameters)
 {
     //Controls what a command does
     if (string.Compare(CommandName, "Enable Model Size Update", true) == 0)
     {
         if (m_updater == null)
         {
             ScaleFactorForm setScale = new ScaleFactorForm();
             setScale.ShowDialog();
             if (setScale.accepted)
             {
                 m_updater = new ModelUpdateClass(m_root)
                 {
                     scaleFactor = setScale.scaleFactor
                 };
                 m_updater.updateModelSize(((IAgAnimation)m_root).CurrentTime);
             }
         }
         else
         {
             m_updater.DisableModelUpdate();
             m_updater = null;
         }
     }
 }
Пример #2
0
 void m_root_OnScenarioClose()
 {
     m_updater = null;
 }