Exemple #1
0
        public LoginForm(BaseSettings settings, ShotrApiService shotrApiService)
        {
            _settings        = settings;
            _shotrApiService = shotrApiService;

            InitializeComponent();
        }
Exemple #2
0
        public MainForm(BaseSettings settings,
                        Uploader uploader,
                        PipeServer pipeServer,
                        SingleInstance tasks,
                        HotKeyService hotkeyService,
                        SettingsService settingsService,
                        IEnumerable <IImageUploader> uploaders,
                        MusicPlayerService musicPlayerService,
                        ShotrApiService shotrApiService)
        {
            _settings           = settings;
            _uploader           = uploader;
            _pipeServer         = pipeServer;
            _tasks              = tasks;
            _hotkeyService      = hotkeyService;
            _settingsService    = settingsService;
            _uploaders          = uploaders;
            _musicPlayerService = musicPlayerService;
            _shotrApiService    = shotrApiService;

            InitializeComponent();

            Shown += MainFormShown;
            _pipeServer.PipeServerReceivedClient += _pipeserver_PipeServerReceivedClient;
            _pipeServer.StartServer();

            _shotrIcon = Icon;
        }