public void Dev2Done()
 {
     if (PropertyEditorViewModel != null)
     {
         InvokeAction(() => PropertyEditorViewModel.Dev2Done());
     }
 }
 public void Dev2ReloadResource(Guid resourceID, string resourceType)
 {
     if (PropertyEditorViewModel != null)
     {
         InvokeAction(() => PropertyEditorViewModel.Dev2ReloadResource(resourceID, resourceType));
     }
 }
 public void Dev2Set(string value1, string value2)
 {
     if (PropertyEditorViewModel != null)
     {
         InvokeAction(() => PropertyEditorViewModel.Dev2Set(value1, value2));
     }
 }
 // Sashen : needed to update the interface IPropertyEditorWizard as this
 // was causing unit tests to fail due to using the interface implementation
 // this was returned by the factory.
 // Brendon 2012-09-10 : Renamed from Dev2Set to Dev2SetValue because having 2
 // methods with the same name was causing issues when invoking them from javascript.
 public void Dev2SetValue(string value)
 {
     if (PropertyEditorViewModel != null)
     {
         InvokeAction(() => PropertyEditorViewModel.Dev2SetValue(value));
     }
 }
 public void Save(string value, bool closeBrowserWindow = true)
 {
     if (PropertyEditorViewModel != null)
     {
         InvokeActionAsync(() => PropertyEditorViewModel.Save(value, closeBrowserWindow));
     }
 }
 public void OpenPropertyEditor()
 {
     if (PropertyEditorViewModel != null)
     {
         InvokeAction(() => PropertyEditorViewModel.OpenPropertyEditor());
     }
 }
 public void Cancel()
 {
     if (PropertyEditorViewModel != null)
     {
         InvokeAction(() => PropertyEditorViewModel.Cancel());
     }
 }
 public string GetIntellisenseResults(string searchTerm, int caretPosition)
 {
     if (PropertyEditorViewModel != null)
     {
         return((string)InvokeFunction(() => PropertyEditorViewModel.GetIntellisenseResults(searchTerm, caretPosition)));
     }
     return(string.Empty);
 }
        public string FetchData(string args)
        {
            if (PropertyEditorViewModel != null)
            {
                return((string)InvokeFunction(() => PropertyEditorViewModel.FetchData(args)));
            }

            return(string.Empty);
        }
Пример #10
0
        public void TestPEVM()
        {
            PropertyEditorViewModel pevm = new PropertyEditorViewModel();
            DelayNode node = new DelayNode {
                Delay = 0
            };

            IoC.GetAllInstances = IoCLookAlike;
            pevm.Source         = node;
            Assert.Equal(node, pevm.Source);
            Assert.Equal(true, pevm.Properties.Single() is IntPropertyViewModel);
            Assert.Equal(1, pevm.Properties.Count());
        }
Пример #11
0
 public PropertyEditor()
 {
     InitializeComponent();
     ic.DataContext = vm = new PropertyEditorViewModel();
 }