protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.Diagnostic);

            var layoutManager = new LinearLayoutManager(this);

            DiagnosticCodeRecyclerView.SetLayoutManager(layoutManager);

            DiagnosticBack.Click += DiagnosticBack_Click;

            RefreshButton.Click += RefreshButton_Click;

            ClearCodeButton.LongClick += ClearCodeButton_Click;

            ViewModel       = ContainerManager.Container.Resolve <IMainViewModel>();
            DiagnosticModel = ContainerManager.Container.Resolve <IDiagnosticViewModel>();

            VehicleText.Text = ViewModel.CurrentVehicle.Description;

            //Do this here, because it does not always restore
            if (savedInstanceState != null)
            {
                RestoreValues(savedInstanceState);
            }
        }
예제 #2
0
 public DiagnosticPresenter(IDiagnosticView diagnosticView, IDiagnosticViewModel model, IDiagnosticViewMinimize diagnosticViewMinimize)
 {
     _view         = diagnosticView;
     _viewMinimize = diagnosticViewMinimize;
     _model        = model;
 }