Ejemplo n.º 1
0
        public BrcForm()
        {
            InitializeComponent();

            _appSettings         = Settings.Current;
            _vm                  = new BrcViewModel();
            _vm.PropertyChanged += ViewModel_PropertyChanged;

            // invoke manually to set starting state
            ViewModel_PropertyChanged(_vm, new PropertyChangedEventArgs("Created"));
#if WIN
            // set the form icon outside designer
            this.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath);
#endif
            // RenderManager
            _renderMngr                     = new RenderManager();
            _renderMngr.Finished           += RenderManager_Finished;
            _renderMngr.AfterRenderStarted += RenderManager_AfterRenderStarted;
            _renderMngr.ProgressChanged    += (s, prog) => UpdateProgress(prog);

            _chrono  = new Stopwatch();
            _etaCalc = new ETACalculator(10, 5);
        }
Ejemplo n.º 2
0
 public SettingsForm()
 {
     InitializeComponent();
     _setts = Services.Settings.Current;
     settingsBindingSrc.Add(_setts);
 }