Esempio n. 1
0
        public WRCDashboardGui(IRbrProAddOn addon, IRbrPro interactor, Model model)
        {
            _addon           = (WRCDashboardAddon)addon;
            this.DataContext = _model = model;
            _rbrPro          = interactor;

            InitializeComponent();

            _rbrPro.SelectedLanguageChanged += _rbrPro_SelectedLanguageChanged;
            _rbrPro.ActiveCoDriverChanged   += _rbrPro_ActiveCoDriverChanged1;
        }
Esempio n. 2
0
        /*[RuntimeProperty]
         * public int AnotherRuntimeProperty { get { return GetRuntimeProperty<int>(); } set { SetRuntimeProperty(value); } }*/
        #endregion

        /// <summary>
        /// The file TestAddOn.ini is used as the main repository of the persistent properties
        /// </summary>
        public Model(WRCDashboardAddon addon) : base($"{AddOns.BASEPATH}\\{addon.Name}\\{addon.Name}.ini")
        {
            // Other model initialization code here
        }