Ejemplo n.º 1
0
 /// <summary>called when the inspector menu item on the file menu is clicked</summary>
 /// <param name="sender">sender</param>
 /// <param name="e">event args</param>
 private void FileMenuInspectorItem_Click(object sender, EventArgs e)
 {
     if (null == this._InspectorWindow || this._InspectorWindow.IsDisposed)
     {
         this._InspectorWindow = new InspectorWindow.InpsectorForm(this._Model);
     }
     if (!this._InspectorWindow.Visible)
     {
         if (this._InspectorWindow.Connect())
         {
             this._InspectorWindow.Show();
         }
         else
         {
             MessageBox.Show(String.Format("Failed to connect to appium: {0}", this._InspectorWindow.LastMessage));
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>called when the inspector menu item on the file menu is clicked</summary>
 /// <param name="sender">sender</param>
 /// <param name="e">event args</param>
 private void FileMenuInspectorItem_Click(object sender, EventArgs e)
 {
     if (null == this._InspectorWindow || this._InspectorWindow.IsDisposed)
     {
         this._InspectorWindow = new InspectorWindow.InpsectorForm(this._Model);
     }
     if (!this._InspectorWindow.Visible)
     {
         this._InspectorWindow.Show();
     }
 }