コード例 #1
0
ファイル: Tester.cs プロジェクト: sillsdev/WorldPad
        /// <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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: FdoUiCore.cs プロジェクト: bbriggs/FieldWorks
		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();
				}
			}
		}
コード例 #4
0
ファイル: Slice.cs プロジェクト: sillsdev/WorldPad
		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);
				}
			}
		}