public SwagOMeterAwardEngine(string fileLocation, IAttendeeSource attendeeSource, ISwagSource swagSource, string attendeeFile, string swagFile)
        {
            _attendees = attendeeSource.Load(Path.Combine(fileLocation ?? string.Empty, attendeeFile));
            _swag      = swagSource.Load(Path.Combine(fileLocation ?? string.Empty, swagFile));

            CheckCanSwag();
        }
        public SwagOMeterAwardEngine(string fileLocation, IAttendeeSource attendeeSource, ISwagSource swagSource, string attendeeFile, string swagFile)
        {
            _attendees = attendeeSource.Load(Path.Combine(fileLocation ?? string.Empty, attendeeFile));
            _swag = swagSource.Load(Path.Combine(fileLocation ?? string.Empty, swagFile));

            CheckCanSwag();
        }
        public SwagOMeterAwardEngine(IAttendeeSource attendeeSource, ISwagSource swagSource)
        {
            _attendees = attendeeSource.Load(Properties.Settings.Default.FileLocation);
            _swag = swagSource.Load(Properties.Settings.Default.FileLocation);

            CheckCanSwag();
        }
Example #4
0
        public void ViewReady()
        {
            var fileLocation  = Settings.Default.FileLocation ?? string.Empty;
            var attendeesFile = Resources.AttendeesFile;

            _attendees = _attendeeSource.Load(Path.Combine(fileLocation, attendeesFile));
            _swag      = _swagSource.Load(Path.Combine(fileLocation, Resources.SwagFile));

            CheckCanSwag();
        }
Example #5
0
        private void ExecuteSetFileLocation()
        {
            var dirDialog = new FolderBrowserDialog();

            if (dirDialog.ShowDialog().Equals(DialogResult.OK))
            {
                FileLocation = dirDialog.SelectedPath;
                _attendeeSource.Load(Path.Combine(FileLocation, Resources.AttendeesFile));
                _swagSource.Load(Path.Combine(FileLocation, Resources.SwagFile));
            }
        }
 public void RefreshData(string attendeesFile, string swagFile, IAttendeeSource attendeeSource, ISwagSource swagSource)
 {
     _winners.Clear();
     _swag      = swagSource.Load(swagFile);
     _attendees = attendeeSource.Load(attendeesFile);
 }
 public void RefreshData(string attendeesFile, string swagFile, IAttendeeSource attendeeSource, ISwagSource swagSource)
 {
     _winners.Clear();
     _swag = swagSource.Load(swagFile);
     _attendees = attendeeSource.Load(attendeesFile);
 }
 public void RefreshData(IAttendeeSource attendeeSource, ISwagSource swagSource)
 {
     _winners.Clear();
     _swag = swagSource.Load(Properties.Settings.Default.FileLocation);
     _attendees = attendeeSource.Load(Properties.Settings.Default.FileLocation);
 }