aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Browser/ViewModelLocator.cs
blob: 054310e9951caa681be7c8fcdef888cef3e4b590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.PPC.Browser.ViewModels;

namespace Tango.PPC.Browser
{
    public static class ViewModelLocator
    {
        /// <summary>
        /// Initializes a new instance of the ViewModelLocator class.
        /// </summary>
        static ViewModelLocator()
        {
            TangoIOC.Default.Register<BrowserViewVM>();
        }

        /// <summary>
        /// Gets the main view VM.
        /// </summary>
        public static BrowserViewVM BrowserViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<BrowserViewVM>();
            }
        }
    }
}
} /* MidTankDataSetupResponse methods */ void mid_tank_data_setup_response__init (MidTankDataSetupResponse *message); size_t mid_tank_data_setup_response__get_packed_size (const MidTankDataSetupResponse *message); size_t mid_tank_data_setup_response__pack (const MidTankDataSetupResponse *message, uint8_t *out); size_t mid_tank_data_setup_response__pack_to_buffer (const MidTankDataSetupResponse *message, ProtobufCBuffer *buffer); MidTankDataSetupResponse * mid_tank_data_setup_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void mid_tank_data_setup_response__free_unpacked (MidTankDataSetupResponse *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*MidTankDataSetupResponse_Closure) (const MidTankDataSetupResponse *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor mid_tank_data_setup_response__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_MidTankDataSetupResponse_2eproto__INCLUDED */