Пример #1
0
        public Answer GetAnswer(int[] indcies, Question q)
        {
            IEnumerable <Option> options = indcies.ToList().Select(i => MainHelpers.getOption(i - 1, q)).ToList();
            // Option option = MainHelpers.getOption(indcies[0], q);

            Answer answer = new Answer()
            {
                QuestionId = q.Id,
                Options    = options,
            };

            return(answer);
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            ///Load Settings
            Settings _settings = new Settings();

            /// Load tray icon
            TrayIcon.Tray(this);

            /// Load clipboard listening and load Regex
            StartListeningForClipboardChange();

            /// Create instance of methods
            _user             = new Services.User(this);
            _pc               = new Services.PC(this);
            _printer          = new Services.Printer(this);
            _mainHelpers      = new MainHelpers(this);
            _clipboardhelpers = new ClipboardHelpers(this);
            _updater          = new Updater(this);

            /// Check updates
            _updater.CheckUpdate();
        }