aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/ModuleWindowVM.cs
blob: 9fd1d68bb069c76a8d0b5a106e44b1f552ce7fff (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using Tango.MachineStudio.Common;
using Tango.SharedUI;

namespace Tango.MachineStudio.UI.ViewModels
{
    public class ModuleWindowVM : ViewModel
    {
        private IStudioModule _module;

        public IStudioModule Module
        {
            get { return _module; }
            set { _module = value; RaisePropertyChangedAuto(); }
        }

        public ModuleWindowVM(IStudioModule module)
        {
            Module = module;
        }
    }
}
ronizationModule : StudioModuleBase { /// <summary> /// Gets the module name. /// </summary> public override string Name => "Synchronization"; /// <summary> /// Gets the module description. /// </summary> public override string Description => "Perform local to local or remote to local database synchronization."; /// <summary> /// Gets the module cover image. /// </summary> public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/synchronization.jpg"); /// <summary> /// Gets the module entry point view type. /// </summary> public override Type MainViewType { get { return typeof(MainView); } } /// <summary> /// Gets the permission required to see and load this module. /// </summary> public override Permissions Permission => Permissions.RunSynchronizationModule; /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public override void Dispose() { } } }