aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Synchronization/ViewModelLocator.cs
blob: 155a37a2d70367c27933e927ff79a77e628fd0d7 (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.Synchronization.ViewModels;

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

        /// <summary>
        /// Gets the main view VM.
        /// </summary>
        public static MainViewVM MainViewVM
        {
            get
            {
                return TangoIOC.Default.GetInstance<MainViewVM>();
            }
        }
    }
}
n">message) { assert(message->base.descriptor == &stop_machine_status_update_response__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t stop_machine_status_update_response__pack (const StopMachineStatusUpdateResponse *message, uint8_t *out) { assert(message->base.descriptor == &stop_machine_status_update_response__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t stop_machine_status_update_response__pack_to_buffer (const StopMachineStatusUpdateResponse *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &stop_machine_status_update_response__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } StopMachineStatusUpdateResponse * stop_machine_status_update_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (StopMachineStatusUpdateResponse *) protobuf_c_message_unpack (&stop_machine_status_update_response__descriptor, allocator, len, data); } void stop_machine_status_update_response__free_unpacked (StopMachineStatusUpdateResponse *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &stop_machine_status_update_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } #define stop_machine_status_update_response__field_descriptors NULL #define stop_machine_status_update_response__field_indices_by_name NULL #define stop_machine_status_update_response__number_ranges NULL const ProtobufCMessageDescriptor stop_machine_status_update_response__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "StopMachineStatusUpdateResponse", "StopMachineStatusUpdateResponse", "StopMachineStatusUpdateResponse", "", sizeof(StopMachineStatusUpdateResponse), 0, stop_machine_status_update_response__field_descriptors, stop_machine_status_update_response__field_indices_by_name, 0, stop_machine_status_update_response__number_ranges, (ProtobufCMessageInit) stop_machine_status_update_response__init, NULL,NULL,NULL /* reserved[123] */ };