/// <summary> /// Receives the message "TypeLetter" /// </summary> public bool OnTypeLetter(object argument) { CheckDisposed(); //string s =""; Command command = (Command)argument; letters.Text += command.GetParameter("text", "?"); return(true); }
public bool OnShowMockupDialog(object parameter) { CheckDisposed(); Command command = (Command)parameter; string path = command.GetParameter("path", ""); path = m_mediator.GetRealPath(path); if (!System.IO.File.Exists(path)) { throw new RuntimeConfigurationException("Could not find this file: " + path); } using (ImageDialog dialog = new ImageDialog(path, command.GetParameter("caption", "Mockup"))) { dialog.ShowDialog(); } return(true); }
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(); } } }
private void PropChangeBackReference(Command cmd) { string sField = cmd.GetParameter("field", null); string sClass = cmd.GetParameter("className", null); if (!String.IsNullOrEmpty(sField) && !String.IsNullOrEmpty(sClass)) { uint flid = m_cache.MetaDataCacheAccessor.GetFieldId(sClass, sField, true); if (flid != 0) { m_cache.PropChanged(this.ContainingDataTree.RootObjectHvo, (int)flid, 0, 0, 1); } } }