private void ExtensionReadyCallback(ReadyParams ready) { executive = ready.CommandExecutive; Assert.IsTrue(ready.WorkspaceModels.Any()); Assert.IsNotNull(ready.CurrentWorkspaceModel); ready.NotificationRecieved += (Logging.NotificationMessage obj) => message = obj; }
private void ExtensionReadyCallback(ReadyParams ready) { executive = ready.CommandExecutive; Assert.IsTrue(ready.WorkspaceModels.Any()); Assert.IsNotNull(ready.CurrentWorkspaceModel); ready.NotificationRecieved += (Logging.NotificationMessage obj) => message = obj; }
/// <summary> /// Create the TuneUp Window /// </summary> /// <param name="vlp"></param> public TuneUpWindow(ViewLoadedParams vlp, string id) { InitializeComponent(); viewLoadedParams = vlp; commandExecutive = vlp.CommandExecutive; viewModelCommandExecutive = vlp.ViewModelCommandExecutive; uniqueId = id; }
/// <summary> /// Creates LibraryViewController /// </summary> /// <param name="dynamoView">DynamoView hosting library component</param> /// <param name="commandExecutive">Command executive to run dynamo commands</param> internal LibraryViewController(Window dynamoView, ICommandExecutive commandExecutive, LibraryViewCustomization customization) { this.dynamoWindow = dynamoView; dynamoViewModel = dynamoView.DataContext as DynamoViewModel; libraryViewTooltip = CreateTooltipControl(); this.commandExecutive = commandExecutive; InitializeResourceStreams(dynamoViewModel.Model, customization); }
/// <summary> /// Creates ViewportViewController /// </summary> /// <param name="dynamoView">DynamoView hosting library component</param> /// <param name="commandExecutive">Command executive to run dynamo commands</param> internal ViewportViewController(Window dynamoView, ICommandExecutive commandExecutive, ViewLoadedParams vParams, string address) { this.dynamoWindow = dynamoView; this.viewLoadedParams = vParams; this.address = address; dynamoViewModel = dynamoView.DataContext as DynamoViewModel; dynamoWindow.StateChanged += DynamoWindowStateChanged; dynamoWindow.SizeChanged += DynamoWindow_SizeChanged; }
/// <summary> /// Create the NodePropertyPalette Window /// </summary> /// <param name="vlp"></param> public NodePropertyPaletteWindow(ViewLoadedParams vlp, string id) { InitializeComponent(); viewLoadedParams = vlp; // Initialize the height of the datagrid in order to make sure // vertical scrollbar can be displayed correctly. this.NodeAnalysisTable.Height = vlp.DynamoWindow.Height - sidebarHeightOffset; vlp.DynamoWindow.SizeChanged += DynamoWindow_SizeChanged; commandExecutive = vlp.CommandExecutive; viewModelCommandExecutive = vlp.ViewModelCommandExecutive; uniqueId = id; }
/// <summary> /// Creates a LibraryViewController. /// </summary> /// <param name="dynamoView">DynamoView hosting library component</param> /// <param name="commandExecutive">Command executive to run dynamo commands</param> internal LibraryViewController(Window dynamoView, ICommandExecutive commandExecutive, LibraryViewCustomization customization) { this.dynamoWindow = dynamoView; dynamoViewModel = dynamoView.DataContext as DynamoViewModel; this.customization = customization; libraryViewTooltip = CreateTooltipControl(); this.commandExecutive = commandExecutive; InitializeResourceProviders(dynamoViewModel.Model, customization); dynamoWindow.StateChanged += DynamoWindowStateChanged; dynamoWindow.SizeChanged += DynamoWindow_SizeChanged; interop = new scriptingObject(this); }
//This callback method will be used in the Mocked Extension private void ExtensionReadyCallback(ReadyParams ready) { executive = ready.CommandExecutive; Assert.IsTrue(ready.WorkspaceModels.Any()); Assert.IsNotNull(ready.CurrentWorkspaceModel); }