Example #1
0
        public FormViewModel(
            Common.Configuration.Config appConfig,
            IUserStorage userStorage,
            Attachments.Attachments attachments,
            IOsProcesses processes)
        {
            _appConfig   = appConfig;
            _userStorage = userStorage;
            _attachments = attachments;
            _processes   = processes;

            AddAttachmentCommand    = new RelayCommand(AddAttachment);
            RemoveAttachmentCommand = new RelayCommand <Attachment>(RemoveAttachment);
            OpenAttachmentCommand   = new RelayCommand <Attachment>(OpenAttachment);
        }
Example #2
0
 public BugReport(IApiClient apiClient, Attachments.Attachments attachments)
 {
     _apiClient   = apiClient;
     _attachments = new AttachmentsToApiFiles(attachments.Items);
 }