Ejemplo n.º 1
0
 public Main(SDConsoleStrings strings, IConfigController configController, IBuildMessenger buildMessenger, Func<IBuildController> builderFactory)
 {
     _strings = strings;
     _buildMessenger = buildMessenger;
     _configController = configController;
     _builderFactory = builderFactory;
 }
Ejemplo n.º 2
0
        public ParseContext(SharpDoxConfig sharpDoxConfig, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger)
        {
            _sdBuildStrings = sdBuildStrings;
            _buildMessenger = buildMessenger;

            _steps = new Steps(sharpDoxConfig, sdBuildStrings, configController, buildMessenger);
        }
Ejemplo n.º 3
0
 public BuildController(SDBuildStrings sdBuildStrings, IConfigController configController, IBuildMessenger buildMessenger, IExporter[] allExporters)
 {
     _configController = configController;
     _sdBuildStrings = sdBuildStrings;
     _buildMessenger = (BuildMessenger)buildMessenger;
     _allExporters = allExporters;
 }
Ejemplo n.º 4
0
 public SDConsole(SDConsoleStrings strings, IConfigController configController, BuildMessenger buildMessenger, Func <BuildController> builderFactory)
 {
     _strings          = strings;
     _buildMessenger   = buildMessenger;
     _configController = configController;
     _builderFactory   = builderFactory;
 }
Ejemplo n.º 5
0
        public ConfigurationForm(IConfigController controller)
        {
            InitializeComponent();

            //load options inputs
            InitFonts();

            //load config interface
            _config                                = controller.Load();
            txt_dir.Text                           = _config.PathSaveVideo;
            bar_timer.Value                        = _config.TimeInterval;
            bar_timer.Enabled                      = _config.EnableInterval;
            bar_frame_rate.Value                   = _config.FrameRate;
            bar_bit_rate.Value                     = _config.BitRate / 1000;
            chk_enable_timer.Checked               = _config.EnableInterval;
            chk_web_difusion.Checked               = _config.EnableServer;
            chk_enable_compress.Checked            = _config.EnableCompressVideo;
            chk_date_time.Checked                  = _config.ViewLegend;
            chk_separate_registers_folders.Checked = _config.FolderFormat != null;
            chk_separate_registers_cameras.Checked = _config.SeparateRegistersCameras;
            cmb_font.Text                          = _config.Font.Size.ToString();
            SetFolder(_config.FolderFormat);
            SetAlign(_config.LegendAlign);

            _controller = controller;
        }
Ejemplo n.º 6
0
 public BuildController(BuildMessenger buildMessenger, IConfigController configController, Func<ICodeParser> codeParser, IExporter[] allExporters, SDBuildStrings sdBuildStrings)
 {
     BuildMessenger = buildMessenger;
     _configController = configController;
     _codeParser = codeParser;
     _allExporters = allExporters;
     _sdBuildStrings = sdBuildStrings;
 }
Ejemplo n.º 7
0
        public BuildContext(SharpDoxConfig sharpDoxConfig, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger, IExporter[] allExporters)
        {
            _sharpDoxConfig = sharpDoxConfig;
            _sdBuildStrings = sdBuildStrings;
            _buildMessenger = buildMessenger;

            _steps = new Steps(sharpDoxConfig, sdBuildStrings, configController, buildMessenger, allExporters);
        }
Ejemplo n.º 8
0
 public BuildController(BuildMessenger buildMessenger, IConfigController configController, Func <ICodeParser> codeParser, IExporter[] allExporters, SDBuildStrings sdBuildStrings)
 {
     BuildMessenger    = buildMessenger;
     _configController = configController;
     _codeParser       = codeParser;
     _allExporters     = allExporters;
     _sdBuildStrings   = sdBuildStrings;
 }
Ejemplo n.º 9
0
        public BuildController(SDBuildStrings sdBuildStrings, IConfigController configController, IExporter[] allExporters, IBuildMessenger buildMessenger)
        {
            _configController = configController;
            _sdBuildStrings   = sdBuildStrings;
            _allExporters     = allExporters;

            BuildMessenger = buildMessenger;
        }
 public void SetUp()
 {
     log = MockRepository.GenerateMock<ILog>();
     stop = MockRepository.GenerateMock<IStop>();
     sleeper = MockRepository.GenerateMock<ISleep>();
     configController = MockRepository.GenerateMock<IConfigController>();
     path = "somePath";
 }
Ejemplo n.º 11
0
 public StepInput(IConfigController configController, ICodeParser codeParser, SDBuildStrings sdBuildStrings, IExporter[] allExporters)
 {
     ConfigController = configController;            
     CoreConfigSection = configController.GetConfigSection<ICoreConfigSection>();
     CodeParser = codeParser;
     SDBuildStrings = sdBuildStrings;
     AllExporters = allExporters;
 }
Ejemplo n.º 12
0
 public StepInput(IConfigController configController, ICodeParser codeParser, SDBuildStrings sdBuildStrings, IExporter[] allExporters)
 {
     ConfigController  = configController;
     CoreConfigSection = configController.GetConfigSection <ICoreConfigSection>();
     CodeParser        = codeParser;
     SDBuildStrings    = sdBuildStrings;
     AllExporters      = allExporters;
 }
Ejemplo n.º 13
0
 public Steps(SharpDoxConfig sharpDoxConfig, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger, IExporter[] allExporters = null)
 {
     PreBuildStep = new PreBuildStep(sharpDoxConfig, sdBuildStrings);
     LoadStep = new LoadStep(sharpDoxConfig, sdBuildStrings, buildMessenger);
     ParseStep = new ParseStep(sdBuildStrings, sharpDoxConfig, buildMessenger);
     StructureParseStep = new StructureParseStep(sdBuildStrings, buildMessenger);
     ExportStep = new ExportStep(sharpDoxConfig, sdBuildStrings, buildMessenger, allExporters);
     EndStep = new EndStep(configController, sharpDoxConfig);
 }
Ejemplo n.º 14
0
        public ConfigGridControl(IConfigController configController, IExporter[] allExporters, LocalController localController, IBuildController buildController)
        {
            _allExporters     = allExporters;
            _localController  = localController;
            _configController = configController;
            _buildController  = buildController;

            InitializeComponent();
            InitializeGrid();
        }
Ejemplo n.º 15
0
        public ConfigGridControl(IConfigController configController, IExporter[] allExporters, ILocalController localController, BuildController buildController)
        {
            _allExporters = allExporters;
            _localController = localController;
            _configController = configController;
            _buildController = buildController;

            InitializeComponent();
            InitializeGrid();
        }
Ejemplo n.º 16
0
 public TaskManager(ILog log, IConfigController configController, string path, IStop stop, ISleep sleep, int configurationReReadTime)
 {
     this.log = log;
     this.configController = configController;
     this.path = path;
     this.stop = stop;
     this.sleep = sleep;
     this.configurationReReadTime = configurationReReadTime;
     TaskBag = new TaskBag(new List<IThread>());
 }
Ejemplo n.º 17
0
        public ShellViewModel(SDGuiStrings strings, IConfigController configController, SharpDoxConfig sharpDoxConfig, Action onCloseHandle)
        {
            _onCloseHandle = onCloseHandle;
            _configController = configController;
            _configController.OnRecentProjectsChanged += RecentProjectsChanged;

            Strings = strings;
            Config = sharpDoxConfig;

            RecentProjectsChanged();
        }
Ejemplo n.º 18
0
        public static List<StepBase> StructureParseConfig(IConfigController configController, ICodeParser codeParser, SDBuildStrings sdBuildStrings, IExporter[] allExporters)
        {
            var stepInput = new StepInput(configController, codeParser, sdBuildStrings, allExporters);

            var config = new List<StepBase>();

            config.Add(new CheckConfigStep(stepInput, 0, 15));
            config.Add(new ParseProjectStep(stepInput, 15, 25));
            config.Add(new StructeParseCodeStep(stepInput, 25, 100));

            return config;
        }
Ejemplo n.º 19
0
        public static List <StepBase> StructureParseConfig(IConfigController configController, ICodeParser codeParser, SDBuildStrings sdBuildStrings, IExporter[] allExporters)
        {
            var stepInput = new StepInput(configController, codeParser, sdBuildStrings, allExporters);

            var config = new List <StepBase>();

            config.Add(new CheckConfigStep(stepInput, 0, 15));
            config.Add(new ParseProjectStep(stepInput, 15, 25));
            config.Add(new StructeParseCodeStep(stepInput, 25, 100));

            return(config);
        }
Ejemplo n.º 20
0
        public Shell(IConfigController configController, IExporter[] allExporters, ILocalController localController, BuildController buildController)
        {
            var guiStrings = localController.GetLocalStrings<SDGuiStrings>();
            DataContext = new ShellViewModel(guiStrings, configController, buildController, ExecuteOnClose);
            Strings = guiStrings;
            Style = (Style)FindResource("SharpDoxWindowStyle");

            Closing += (sender, args) => ExecuteOnClose();
            SourceInitialized += OnWindowSourceInitialized;

            InitializeComponent();
            svBody.Content = new ConfigGridControl(configController, allExporters, localController, buildController);
        }
Ejemplo n.º 21
0
        public Shell(SDGuiStrings strings, SharpDoxConfig sharpDoxConfig, IConfigController configController, IPage[] allPages)
        {
            _allPages = allPages;

            DataContext = new ShellViewModel(strings, configController, sharpDoxConfig, ExecuteOnClose);
            Strings = strings;

            InitializeComponent();
            SetMainMenu();
            SetExportDropDown();

            MouseLeftButtonDown += (s, a) => DragMove();
        }
Ejemplo n.º 22
0
        public Shell(IConfigController configController, IExporter[] allExporters, ILocalController localController, BuildController buildController)
        {
            var guiStrings = localController.GetLocalStrings <SDGuiStrings>();

            DataContext = new ShellViewModel(guiStrings, configController, buildController, ExecuteOnClose);
            Strings     = guiStrings;
            Style       = (Style)FindResource("SharpDoxWindowStyle");

            Closing           += (sender, args) => ExecuteOnClose();
            SourceInitialized += OnWindowSourceInitialized;

            InitializeComponent();
            svBody.Content = new ConfigGridControl(configController, allExporters, localController, buildController);
        }
Ejemplo n.º 23
0
 public FileOpenController(IFileFormatController <LBD, LBDDocument> lbdController,
                           IFileFormatController <TMD, TMDDocument> tmdController,
                           IFileFormatController <MOM, MOMDocument> momController,
                           IFileFormatController <TIM, TIMDocument> timController,
                           IFileFormatController <TIX, TIXDocument> tixController,
                           IConfigController configController)
 {
     _lbdController    = lbdController;
     _tmdController    = tmdController;
     _momController    = momController;
     _timController    = timController;
     _tixController    = tixController;
     _configController = configController;
 }
Ejemplo n.º 24
0
        public Shell(IConfigController configController, IExporter[] allExporters, LocalController localController, IBuildController buildController)
        {
            var guiStrings = localController.GetLocalStrings <SDGuiStrings>();

            DataContext = new ShellViewModel(guiStrings, configController, buildController, ExecuteOnClose);
            Strings     = guiStrings;

            InitializeComponent();

            svBody.Content = new ConfigGridControl(configController, allExporters, localController, buildController);

            MouseLeftButtonDown += (s, a) => OnMouseDown(s, a);
            MouseLeftButtonUp   += (s, a) => OnMouseUp(s, a);
        }
Ejemplo n.º 25
0
 /// <summary>
 /// Start principal application
 /// </summary>
 /// <param name="notify"></param>
 /// <param name="config"></param>
 /// <param name="about"></param>
 /// <param name="grid"></param>
 /// <param name="deviceRepository"></param>
 public AppController(
     INotifyController notify,
     IConfigController config,
     IAboutController about,
     IGridController grid,
     IDeviceRepository deviceRepository
     )
 {
     this._notify           = notify;
     this._config           = config;
     this._about            = about;
     this._grid             = grid;
     this._deviceRepository = deviceRepository;
 }
Ejemplo n.º 26
0
        protected AloreDao(IConfigController configController)
        {
            DatabaseConfig config = configController.Get <DatabaseConfig>("database");
            MySqlConnectionStringBuilder stringBuilder = new MySqlConnectionStringBuilder
            {
                UserID   = config.User,
                Server   = config.Host,
                Database = config.Database,
                Port     = uint.Parse(config.Port),
                Password = config.Password
            };

            _connectionString = stringBuilder.ToString();
            _insertQueries    = new List <KeyValuePair <string, object[]> >();
        }
Ejemplo n.º 27
0
        public MainMenuBar(IFileOpenController fileOpenController,
                           IVRAMController vramController,
                           IConfigController configController,
                           ICameraController cameraController,
                           GUIExportController exportController)
        {
            _configController       = configController;
            _gameDataPathFieldValue = _configController.Config.GameDataPath;
            _openDialog             = new FileDialog(_configController.Config.GameDataPath, FileDialog.DialogType.Open);
            _openVramDialog         = new FileDialog(_configController.Config.GameDataPath, FileDialog.DialogType.Open);
            _fileOpenController     = fileOpenController;
            _vramController         = vramController;
            _cameraController       = cameraController;
            _exportController       = exportController;

            _configController.Config.OnGameDataPathChange += () =>
                                                             _openDialog.InitialDir = _configController.Config.GameDataPath;
            _configController.Config.OnGameDataPathChange += () =>
                                                             _openVramDialog.InitialDir = _configController.Config.GameDataPath;
        }
Ejemplo n.º 28
0
        public ShellViewModel(SDGuiStrings strings, IConfigController configController, IBuildController buildController, Action onCloseHandle)
        {
            _onCloseHandle   = onCloseHandle;
            _buildController = buildController;
            _buildController.BuildMessenger.OnStepMessage += (s) => StepMessage = s;

            _configController = configController;

            Strings = strings;

            Config         = configController.GetConfigSection <ICoreConfigSection>();
            ConfigSections = configController.GetAllConfigSections().ToList();

            ProgressBarViewModel = new ProgressBarViewModel(buildController, strings);

            _configController.OnRecentProjectsChanged += RecentProjectsChanged;

            _buildWindow = new BuildView(Strings, buildController.BuildMessenger);

            RecentProjectsChanged();
        }
Ejemplo n.º 29
0
        public ShellViewModel(SDGuiStrings strings, IConfigController configController, BuildController buildController, Action onCloseHandle)
        {
            _onCloseHandle = onCloseHandle;
            _buildController = buildController;
            _buildController.BuildMessenger.OnStepMessage += (s) => StepMessage = s;
            _buildController.BuildMessenger.OnBuildFailed += () => Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => _buildWindow.Show()));

            _configController = configController;

            Strings = strings;

            Config = configController.GetConfigSection<ICoreConfigSection>();
            ConfigSections = configController.GetAllConfigSections().ToList();

            _configController.OnRecentProjectsChanged += RecentProjectsChanged;

            _buildWindow = new BuildView(Strings, buildController.BuildMessenger);

            ProgressBarViewModel = new ProgressBarViewModel(buildController, strings);

            RecentProjectsChanged();
        }
Ejemplo n.º 30
0
        public ShellViewModel(SDGuiStrings strings, IConfigController configController, BuildController buildController, Action onCloseHandle)
        {
            _onCloseHandle = onCloseHandle;
            _buildController = buildController;
            _buildController.BuildMessenger.OnStepMessage += (s) => StepMessage = s;
            _buildController.BuildMessenger.OnBuildFailed += () => Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => _buildWindow.Show()));

            _configController = configController;

            Strings = strings;

            Config = configController.GetConfigSection<ICoreConfigSection>();
            ConfigSections = configController.GetAllConfigSections().ToList();

            _configController.OnRecentProjectsChanged += RecentProjectsChanged;

            _buildWindow = new BuildView(Strings, buildController.BuildMessenger);

            ProgressBarViewModel = new ProgressBarViewModel(buildController, strings);

            RecentProjectsChanged();
        }
 public RepeatController(IConfigController configController)
 {
     this._configController = configController;
 }
Ejemplo n.º 32
0
 public RoomDao(IConfigController configController) : base(configController)
 {
 }
Ejemplo n.º 33
0
 public NavigatorDao(IConfigController configController) : base(configController)
 {
 }
Ejemplo n.º 34
0
        public BuildContext(ICoreConfigSection coreConfigSection, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger, IExporter[] allExporters)
        {
            _coreConfigSection = coreConfigSection;
            _sdBuildStrings    = sdBuildStrings;
            _buildMessenger    = buildMessenger;

            _steps = new Steps(coreConfigSection, sdBuildStrings, configController, buildMessenger, allExporters);
        }
Ejemplo n.º 35
0
 public ItemDao(IConfigController configController)
     : base(configController)
 {
 }
Ejemplo n.º 36
0
 public Steps(ICoreConfigSection coreConfigSection, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger, IExporter[] allExporters = null)
 {
     PreBuildStep       = new PreBuildStep(coreConfigSection, allExporters, buildMessenger, sdBuildStrings);
     LoadStep           = new LoadStep(coreConfigSection, sdBuildStrings, buildMessenger);
     ParseStep          = new ParseStep(sdBuildStrings, coreConfigSection, buildMessenger);
     StructureParseStep = new StructureParseStep(sdBuildStrings, buildMessenger);
     ExportStep         = new ExportStep(coreConfigSection, sdBuildStrings, buildMessenger, allExporters);
     EndStep            = new EndStep(configController, coreConfigSection);
 }
Ejemplo n.º 37
0
 protected TestDao(IConfigController configController) : base(configController)
 {
 }
Ejemplo n.º 38
0
        public ParseContext(ICoreConfigSection coreConfigSection, SDBuildStrings sdBuildStrings, IConfigController configController, BuildMessenger buildMessenger)
        {
            _sdBuildStrings = sdBuildStrings;
            _buildMessenger = buildMessenger;

            _steps = new Steps(coreConfigSection, sdBuildStrings, configController, buildMessenger);
        }
Ejemplo n.º 39
0
 public LandingDao(IConfigController configController) : base(configController)
 {
 }
Ejemplo n.º 40
0
 private void btnLuu_Click(object sender, EventArgs e)
 {
     this._configController = new ConfigController(this._configView, this._currentConfig, this);
     this._configController.SetOpenView(_openView);
     this._fileName = TnSystemFileName.PARAMS;
     this._newYear = spnNam.EditValue.ToString();
     this._configController.SaveConfig();
     _openView.NewYear = this._newYear;
     _openView.FileName = this._fileName;
     this._configController.LoadConfig();
     //this._configController.o
     this.Close();
 }
Ejemplo n.º 41
0
 public EndStep(IConfigController configController, SharpDoxConfig sharpDoxConfig)
 {
     _configController = configController;
     _sharpDoxConfig = sharpDoxConfig;
 }
Ejemplo n.º 42
0
 public PlayerDao(IConfigController configController) : base(configController)
 {
 }
Ejemplo n.º 43
0
 public MessengerDao(IConfigController configController) : base(configController)
 {
 }
Ejemplo n.º 44
0
 public PingController(IConfigController configController, IPingFactory pingFactory)
 {
     this._configController = configController;
     this._pingFactory      = pingFactory;
 }
Ejemplo n.º 45
0
 public EndStep(IConfigController configController, ICoreConfigSection coreConfigSection)
 {
     _configController  = configController;
     _coreConfigSection = coreConfigSection;
 }
Ejemplo n.º 46
0
        public GtkConfigPage(IConfigController tabController)
        {
            this.TabController = tabController;

            Initialize();
        }
Ejemplo n.º 47
0
 private void btnOpen_Click(object sender, EventArgs e)
 {
     //FrmTnQuydinhTinhgia.CallMe.loadConfigParam(spinEdit1.EditValue.ToString());
     //FrmTnQuydinhTinhgia.CallMe.putParamIntoForm();
     this._configController = new ConfigController(this._configView, this._currentConfig, this);
     this._fileName = TnSystemFileName.PARAMS;
     this._newYear = spnNam.EditValue.ToString();
     this._configController.LoadConfig();
     this.Close();
     //Thread t = new Thread(loadConfig);
     //t.Start();
     //t.Join();
     //this._configView.LoadConfig();
 }