private void DisplayIronPythonDialog() { // we only want to create the dialog if the global setting is not disabled and once per Dynamo session, for each graph/custom node if (DynamoViewModel.IsIronPythonDialogDisabled || DialogTracker.ContainsKey(CurrentWorkspace.Guid)) { return; } if (CurrentWorkspace is CustomNodeWorkspaceModel && DialogTracker.ContainsKey((CurrentWorkspace as CustomNodeWorkspaceModel).CustomNodeId)) { return; } var dialog = new IronPythonInfoDialog(this) { Owner = LoadedParams.DynamoWindow }; Dispatcher.BeginInvoke(new Action(() => { dialog.Show(); }), DispatcherPriority.Background); DialogTracker[CurrentWorkspace.Guid] = dialog; if (CurrentWorkspace is CustomNodeWorkspaceModel) { DialogTracker[(CurrentWorkspace as CustomNodeWorkspaceModel).CustomNodeId] = dialog; } }
private void DisplayIronPythonDialog() { // we only want to create the dialog ones for each graph per Dynamo session if (DialogTracker.ContainsKey(CurrentWorkspace.Guid)) { return; } var dialog = new IronPythonInfoDialog(this); dialog.Owner = LoadedParams.DynamoWindow; Dispatcher.BeginInvoke(new Action(() => { dialog.Show(); }), DispatcherPriority.Background); DialogTracker[CurrentWorkspace.Guid] = dialog; }
private void DisplayIronPythonDialog() { // we only want to create the dialog ones for each graph per Dynamo session, if the global setting is not disabled if (DialogTracker.ContainsKey(CurrentWorkspace.Guid) || DynamoViewModel.IsIronPythonDialogDisabled) { return; } var dialog = new IronPythonInfoDialog(this) { Owner = LoadedParams.DynamoWindow }; Dispatcher.BeginInvoke(new Action(() => { dialog.Show(); }), DispatcherPriority.Background); DialogTracker[CurrentWorkspace.Guid] = dialog; }