SIL.FieldWorks.FdoUi.CmObjectUi.LaunchGuiControl C# (CSharp) Method

LaunchGuiControl() public method

public LaunchGuiControl ( Command command ) : void
command Command
return void
		public virtual void LaunchGuiControl(Command command)
		{
			CheckDisposed();
			string guicontrol = command.GetParameter("guicontrol");
			string xpathToControl = String.Format("/window/controls/parameters/guicontrol[@id=\"{0}\"]", guicontrol);
			XmlNode xnControl = command.ConfigurationNode.SelectSingleNode(xpathToControl);
			if (xnControl != null)
			{
				using (var dlg = (IFwGuiControl) DynamicLoader.CreateObject(xnControl.SelectSingleNode("dynamicloaderinfo")))
				{
					dlg.Init(m_mediator, xnControl.SelectSingleNode("parameters"), Object);
					dlg.Launch();
				}
			}
		}