private void btnSelectContainer_Click(object sender, EventArgs e)
 {
     if (m_ContainerSelector.IsActive)
     {
         m_ContainerSelector.Deactivate();
         btnSelectContainer.BackgroundImage = Resources.Pointer;
     }
     else
     {
         m_ContainerSelector.Activate();
         btnSelectContainer.BackgroundImage = Resources.DoneIcon;
     }
 }
 private void zEnableSelectMode()
 {
     if (m_ElementSelector.Activate())
     {
         if (m_ElementSelectMode == ElementSelectMode.Get)
         {
             m_ElementSelector.SelectBorderColor = Color.Green;
             btnSelectGetElement.BackgroundImage = Resources.DoneIcon;
             btnSelectSetElement.Enabled         = false;
         }
         else
         {
             m_ElementSelector.SelectBorderColor = Color.Blue;
             btnSelectSetElement.BackgroundImage = Resources.DoneIcon;
             btnSelectGetElement.Enabled         = false;
         }
         zRemoveElementEventHandlers();
     }
 }
Exemple #3
0
 void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
     m_Selector.Activate();
 }