public TyresDashboardGui(IRbrProAddOn addon, IRbrPro interactor, Model model)
        {
            _addon           = (TyresDashboardAddon)addon;
            this.DataContext = _model = model;
            _rbrPro          = interactor;

            InitializeComponent();

            _rbrPro.SelectedLanguageChanged += _rbrPro_SelectedLanguageChanged;
            _rbrPro.ActiveCoDriverChanged   += _rbrPro_ActiveCoDriverChanged1;
        }
예제 #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(TyresDashboardAddon addon) : base($"{AddOns.BASEPATH}\\{addon.Name}\\{addon.Name}.ini")
        {
            // Other model initialization code here
        }