Esempio n. 1
0
        public void Drive(int value)
        {
            InitAutofac.InitAutofacs();
            ICar car = InitAutofac.GetFromFac <ICar>();

            car.Engine(value);
            car.Run();
        }
 private void ExcuteSendCommand(TreeNode NodeName)
 {
     if (NodeName.ParentID != 0)
     {
         SelectedView = InitAutofac.GetFromFac <UserControl>(NodeName.NodeName);
         this.RaisePropertyChanged(nameof(SelectedView));
     }
 }
Esempio n. 3
0
 protected override void OnStartup(StartupEventArgs e)
 {
     InitAutofac.InitAutofacs();
     base.OnStartup(e);
 }