public ScriptWindow WithScript(IAsyncScript script)
 {
   _script = script;
   lblScriptName.Text = ScriptManager.Instance.GetName(script);
   propGrid.SelectedObject = _script;
   return this;
 }
示例#2
0
 public ScriptWindow WithScript(IAsyncScript script)
 {
     _script                 = script;
     lblScriptName.Text      = ScriptManager.Instance.GetName(script);
     propGrid.SelectedObject = _script;
     return(this);
 }
 public bool TryGetNewScript(string name, out IAsyncScript script)
 {
   Type type;
   script = null;
   if (_scripts.TryGetValue(name, out type))
   {
     script = FastObjectFactory.CreateObject<IAsyncScript>(type);
     return true;
   }
   return false;
 }
示例#4
0
        public bool TryGetNewScript(string name, out IAsyncScript script)
        {
            Type type;

            script = null;
            if (_scripts.TryGetValue(name, out type))
            {
                script = FastObjectFactory.CreateObject <IAsyncScript>(type);
                return(true);
            }
            return(false);
        }
示例#5
0
 public string GetName(IAsyncScript script)
 {
     return(GetName(script.GetType()));
 }
 public string GetName(IAsyncScript script)
 {
   return GetName(script.GetType());
 }