public UserService(IPersistenceManager persistenceManager, ILoginForm loginForm, IHttpWrapper httpRequest, IDialogWrapper dialogWrapper) { _persistenceManager = persistenceManager; _loginForm = loginForm; _httpRequest = httpRequest; _dialogWrapper = dialogWrapper; }
/// <summary> /// Constructor for the MainViewModel /// </summary> /// <param name="iDialogWrapper">Interface for the log-file-open-selection-dialog</param> /// <param name="iAssemblyWrapper">Interface for the get-application-version class</param> /// <param name="iParsingFactory">Interface for determining which parsing strategy we need to use</param> /// <param name="iFilterFactory">Interface for the filters we need to use in the TabViewModel</param> /// <param name="iLog">Interface for the LogParse's log file</param> public MainViewModel(IDialogWrapper iDialogWrapper, IAssemblyWrapper iAssemblyWrapper, IParsingFactory iParsingFactory, IFilterFactory iFilterFactory, ILog iLog) { _dialogWrapper = iDialogWrapper ?? throw new ArgumentNullException(nameof(iDialogWrapper)); _assemblyWrapper = iAssemblyWrapper ?? throw new ArgumentNullException(nameof(iAssemblyWrapper)); _parsingFactory = iParsingFactory ?? throw new ArgumentNullException(nameof(iParsingFactory)); _filterFactory = iFilterFactory ?? throw new ArgumentNullException(nameof(iFilterFactory)); _iLog = iLog ?? throw new ArgumentNullException(nameof(iLog)); _listLoadLine = new ObservableCollection <LogModel>(); _closedTabsList = new List <ITab>(); Tabs = new ObservableCollection <ITab>(); ClickMenuCommand = new RelayCommand(SelectLogFile); OpenClosedTabMenuCommand = new RelayCommand(ReOpenLastClosedTab); CloseTabCommand = new RelayCommand <ITab>(CloseTab); ClickOpenNotepadCommand = new RelayCommand(OpenNotepad); ExitCommand = new RelayCommand(ExitApplication); DropInFileCommand = new RelayCommand <DragEventArgs>(OpenDroppedFiles); ChangeSizeWindowCommand = new RelayCommand <EventArgs>(ChangeSizeWindow); CloseWindowCommand = new RelayCommand(CloseWindow); LastClosedTabOpenEventCommand = new RelayCommand(ReOpenLastClosedTabEvent); TabMouseClickCommand = new RelayCommand <ITab>(CloseTabMiddleButton); GetVersion(); }
public SystemTrayApplicationContext(IDialogWrapper fileDialog, ISkyresponseApi skyresponseApi, ISoundService soundService, IUserService userService) { _fileDialog = fileDialog; _skyresponseApi = skyresponseApi; _soundService = soundService; _userService = userService; Init(); }
public LoginForm(IDialogWrapper dialogWrapper) { InitializeComponent(); _dialogWrapper = dialogWrapper; }