Show / Hide Table of Contents

Class BugCreationViewModel

Implementation of IFieldsDataContext used to create a bug.

Inheritance
object
BindableBase
FieldsViewModelBase
BugCreationViewModel
Implements
INotifyPropertyChanged
IFieldsViewModel
IAttachmentsViewModel
IDisposable
Inherited Members
FieldsViewModelBase.IsPrivateTemplate
FieldsViewModelBase.AreTokensReadOnly
FieldsViewModelBase.IsExistingBug
FieldsViewModelBase.CachedView
FieldsViewModelBase.MediaProvider
FieldsViewModelBase.SharedInfo
FieldsViewModelBase.TagsControlVM
FieldsViewModelBase.DynamicContent
FieldsViewModelBase.DynamicContentForDisplay
FieldsViewModelBase.TemplateViewModel
FieldsViewModelBase.TokenResolverRegistry
FieldsViewModelBase.HasValidData
FieldsViewModelBase.IsTemplateDirty
FieldsViewModelBase.Fields
FieldsViewModelBase.Attachments
FieldsViewModelBase.TokenParser
FieldsViewModelBase.ValidationErrorCommand
FieldsViewModelBase.IsAutoCapturing
FieldsViewModelBase.RefreshAllAutoAttachmentsCommand
FieldsViewModelBase.RefreshFailedAutoAttachmentsCommand
FieldsViewModelBase.RefreshAllMetadataAutoAttachmentsCommand
FieldsViewModelBase.RefreshFailedMetadataAutoAttachmentsCommand
FieldsViewModelBase.HasAutoAttachments
FieldsViewModelBase.HasMetdataAutoAttachments
FieldsViewModelBase.Dispatcher
FieldsViewModelBase.OriginalTagsFromDatabase
FieldsViewModelBase.EventAggregator
FieldsViewModelBase.BugServiceClient
FieldsViewModelBase.ExceptionHandler
FieldsViewModelBase.StoreProvider
FieldsViewModelBase.ReloadDynamicContent()
FieldsViewModelBase.InitializeBugServiceMultiselectFieldsAsync()
FieldsViewModelBase.Uninitialize()
FieldsViewModelBase.OnTemplatePropertyChanged(object, PropertyChangedEventArgs)
FieldsViewModelBase.OnTemplateRevertedCompleted()
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class BugCreationViewModel : FieldsViewModelBase, INotifyPropertyChanged, IFieldsViewModel, IAttachmentsViewModel, IDisposable

Constructors

View Source

BugCreationViewModel(Dispatcher, ViewModelSharedInfo, TokenResolverRegistry, TemplateViewModel, List<string>, Guid, bool)

Initializes a new instance of the BugCreationViewModel class.

Declaration
public BugCreationViewModel(Dispatcher dispatcher, ViewModelSharedInfo sharedInfo, TokenResolverRegistry tokenResolverRegistry, TemplateViewModel templateVM, List<string> tags, Guid bugResolveGuid = default, bool isClone = false)
Parameters
Type Name Description
Dispatcher dispatcher

The dispatcher.

ViewModelSharedInfo sharedInfo

The ViewModelSharedInfoto use.

TokenResolverRegistry tokenResolverRegistry

The TokenResolverRegistry to use.

TemplateViewModel templateVM

The template view model for this bug.

List<string> tags

A list of tags that are used in the bug database.

Guid bugResolveGuid

The GUID to identify the bug if non-empty. Otherwise one will be generated.

bool isClone

Properties

View Source

AddLinkedWorkItemCommand

Gets the command for adding a linked work item.

Declaration
public DelegateCommand AddLinkedWorkItemCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

AvailableTemplatesTreeView

Gets the ObservableCollection<T> that the TemplateExplorerViewModel keeps updated inside of the Phoenix.Aruba.ArubaModuleGlobals.

Declaration
public static ObservableCollection<TemplateTreeItemViewModel> AvailableTemplatesTreeView { get; }
Property Value
Type Description
ObservableCollection<TemplateTreeItemViewModel>
View Source

BugDevicesVM

Gets the BugDevicesVM associated with this bug.

Declaration
public BugDevicesViewModel BugDevicesVM { get; }
Property Value
Type Description
BugDevicesViewModel
View Source

BugLinkTypes

Gets the bug link types that are available.

Declaration
public List<BugLinkType> BugLinkTypes { get; }
Property Value
Type Description
List<BugLinkType>
View Source

BugResolveGuid

Gets or sets the bug resolve id for the creation of this bug.

Declaration
public Guid BugResolveGuid { get; set; }
Property Value
Type Description
Guid
View Source

BugTabName

Gets or sets this bugs tab name in the UI.

Declaration
public string BugTabName { get; set; }
Property Value
Type Description
string
View Source

CanEdit

Gets a value indicating whether bug can be edited.

Declaration
public override bool CanEdit { get; }
Property Value
Type Description
bool
Overrides
FieldsViewModelBase.CanEdit
View Source

CancelCommand

Gets the Cancel Command.

Declaration
public DelegateCommand<string> CancelCommand { get; }
Property Value
Type Description
DelegateCommand<string>
View Source

ChangeTemplateCommand

Gets the command for changing the template the bug is using.

Declaration
public DelegateCommand<TemplateViewModel> ChangeTemplateCommand { get; }
Property Value
Type Description
DelegateCommand<TemplateViewModel>
View Source

CloneCurrentBugCommand

Gets the command for cloning this bug to create another.

Declaration
public DelegateCommand CloneCurrentBugCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

CreateBugCommand

Gets the command for creating a bug.

Declaration
public DelegateCommand CreateBugCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

CurrentBugKey

Gets or sets the current bug key to be added as a linked work item.

Declaration
public string CurrentBugKey { get; set; }
Property Value
Type Description
string
View Source

DockBugCommand

Gets the command for docking a bug to the Phoenix Window.

Declaration
public DelegateCommand DockBugCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

DuplicateCheckVM

Gets DuplicateCheckViewModel associated with this bug.

Declaration
public DuplicateCheckViewModel DuplicateCheckVM { get; }
Property Value
Type Description
DuplicateCheckViewModel
View Source

IsAttachmentCaptureDirty

Gets or sets a value indicating whether an attachment is in the process of being added to the bug. Typically this is set externally by the capture control.

Declaration
public bool IsAttachmentCaptureDirty { get; set; }
Property Value
Type Description
bool
View Source

IsDocked

Gets or sets a value indicating whether the bug is docked.

Declaration
public bool IsDocked { get; set; }
Property Value
Type Description
bool
View Source

IsInDesignMode

Gets a value indicating whether the module is in design mode.

Declaration
public override bool IsInDesignMode { get; }
Property Value
Type Description
bool
Overrides
FieldsViewModelBase.IsInDesignMode
View Source

LinkedItems

Gets the collection of linked items.

Declaration
public ObservableCollection<LinkedBugItem> LinkedItems { get; }
Property Value
Type Description
ObservableCollection<LinkedBugItem>
View Source

MapFieldNameToImages

Gets a mapping of field name to images.

Declaration
public Dictionary<string, IEnumerable<Image>> MapFieldNameToImages { get; }
Property Value
Type Description
Dictionary<string, IEnumerable<Image>>
View Source

RemoveLinkedWorkItemCommand

Gets the command for removing a linked work item.

Declaration
public DelegateCommand<LinkedBugItem> RemoveLinkedWorkItemCommand { get; }
Property Value
Type Description
DelegateCommand<LinkedBugItem>
View Source

SelectedWorkItemLinkType

Gets or sets the selected work item link type for adding a linked item.

Declaration
public BugLinkType SelectedWorkItemLinkType { get; set; }
Property Value
Type Description
BugLinkType
View Source

TokenActivatorVM

Gets the TokenActivatorViewModel associated with this bug.

Declaration
public TokenActivatorViewModel TokenActivatorVM { get; }
Property Value
Type Description
TokenActivatorViewModel
View Source

UndockBugCommand

Gets the command for undocking a bug to the Aruba Pop Up window.

Declaration
public DelegateCommand UndockBugCommand { get; }
Property Value
Type Description
DelegateCommand

Methods

View Source

AddRequestedAttachments(IGameDevice, IEnumerable<string>)

Adds a set of requested files as attachments to the bug.

Declaration
public void AddRequestedAttachments(IGameDevice gameDevice, IEnumerable<string> requestedAttachmentPaths)
Parameters
Type Name Description
IGameDevice gameDevice

Game device to apply attachments for; null if all game devices should have the attachment.

IEnumerable<string> requestedAttachmentPaths

List of file paths pointing to attachments.

View Source

Clone(BugCreationViewModel, ViewModelSharedInfo, TokenResolverRegistry, List<string>)

Initializes a new instance of the BugCreationViewModel class.

Declaration
public static BugCreationViewModel Clone(BugCreationViewModel other, ViewModelSharedInfo sharedInfo, TokenResolverRegistry tokenResolverRegistry, List<string> tags)
Parameters
Type Name Description
BugCreationViewModel other

The BugCreationViewModel to copy.

ViewModelSharedInfo sharedInfo

The ViewModelSharedInfoto use.

TokenResolverRegistry tokenResolverRegistry

The TokenResolverRegistry to use.

List<string> tags

A list of tags that are used in the bug database.

Returns
Type Description
BugCreationViewModel
View Source

CopyTokensFromBugVMAsync(BugCreationViewModel)

Copy the token values from the given BugCreationViewModel.

Declaration
public Task CopyTokensFromBugVMAsync(BugCreationViewModel bugToCopy)
Parameters
Type Name Description
BugCreationViewModel bugToCopy

The BugCreationViewModel to copy.

Returns
Type Description
Task

A Task.

View Source

CreateAsync(BugCreationSaveModel, Dispatcher, ViewModelSharedInfo, TemplateViewModel, TokenResolverRegistry)

Initializes a new instance of the BugCreationViewModel class.

Declaration
public static Task<BugCreationViewModel> CreateAsync(BugCreationSaveModel bugCreationSaveModel, Dispatcher dispatcher, ViewModelSharedInfo sharedInfo, TemplateViewModel templateVM, TokenResolverRegistry tokenResolverRegistry)
Parameters
Type Name Description
BugCreationSaveModel bugCreationSaveModel

The BugCreationSaveModel to create a view model based off of.

Dispatcher dispatcher

The Dispatcher to copy.

ViewModelSharedInfo sharedInfo

The ViewModelSharedInfoto use.

TemplateViewModel templateVM

The TemplateViewModelto use.

TokenResolverRegistry tokenResolverRegistry

The TokenResolverRegistry to use.

Returns
Type Description
Task<BugCreationViewModel>
Remarks

This constructor is intended to re-create a bug that had its data stored as a BugCreationSaveModel.

View Source

DeleteTempFolderContents()

Cleans up the temporary folder that is used to upload images from rich text boxes.

Declaration
public static void DeleteTempFolderContents()
View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public override void Dispose()
Overrides
FieldsViewModelBase.Dispose()
View Source

GetBugCreationParams()

Gets the bug creation parameters.

Declaration
public BugCreationParams GetBugCreationParams()
Returns
Type Description
BugCreationParams

The bug creation parameters.

View Source

InitializeAsync()

Initialize this.

Declaration
public Task InitializeAsync()
Returns
Type Description
Task

A task.

View Source

OnHasValidDataChanged()

Performed when the validation of the data changes.

Declaration
protected override void OnHasValidDataChanged()
Overrides
FieldsViewModelBase.OnHasValidDataChanged()
View Source

OnSharedInfoChanged(ViewModelSharedInfo, ViewModelSharedInfo)

Updates the shared info when it changes.

Declaration
protected override void OnSharedInfoChanged(ViewModelSharedInfo oldValue, ViewModelSharedInfo newValue)
Parameters
Type Name Description
ViewModelSharedInfo oldValue

The old shared info value.

ViewModelSharedInfo newValue

The new shared info value.

Overrides
FieldsViewModelBase.OnSharedInfoChanged(ViewModelSharedInfo, ViewModelSharedInfo)
View Source

RaiseDeviceCommandsCanExecute()

Inform view model that device changes have occurred.

Declaration
public void RaiseDeviceCommandsCanExecute()
View Source

UninitializeAsync()

Uninitialize the Bug Creation View Model.

Declaration
public Task UninitializeAsync()
Returns
Type Description
Task

A Task.

View Source

UpdateFields()

Updates the fields of the bug view and the duplicate checker view.

Declaration
protected override void UpdateFields()
Overrides
FieldsViewModelBase.UpdateFields()
View Source

UpdateSharedInfo(ViewModelSharedInfo)

Updates the ViewModelSharedInfo.

Declaration
public void UpdateSharedInfo(ViewModelSharedInfo sharedInfo)
Parameters
Type Name Description
ViewModelSharedInfo sharedInfo

The new ViewModelSharedInfo.

View Source

UpdateTokenResolverRegistry(TokenResolverRegistry)

Updates the TokenResolverRegistry.

Declaration
public void UpdateTokenResolverRegistry(TokenResolverRegistry tokenResolverRegistry)
Parameters
Type Name Description
TokenResolverRegistry tokenResolverRegistry

The new TokenResolverRegistry.

Implements

INotifyPropertyChanged
IFieldsViewModel
IAttachmentsViewModel
IDisposable
  • View Source
In this article
Back to top Generated by DocFX