using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Imaging; using Tango.BL.Entities; using Tango.BL.Enumerations; using Tango.MachineStudio.Common; using Tango.MachineStudio.Synchronization.Views; using Tango.SharedUI.Helpers; namespace Tango.MachineStudio.Synchronization { /// /// Represents a Machine Studio module capable of comparing and synchronizing machines data against Twine remote database. /// /// [StudioModule(6)] public class SynchronizationModule : StudioModuleBase { /// /// Gets the module name. /// public override string Name => "Synchronization"; /// /// Gets the module description. /// public override string Description => "Perform local to local or remote to local database synchronization."; /// /// Gets the module cover image. /// public override BitmapSource Image => ResourceHelper.GetImageFromResources("Images/synchronization.jpg"); /// /// Gets the module entry point view type. /// public override Type MainViewType { get { return typeof(MainView); } } /// /// Gets the permission required to see and load this module. /// public override Permissions Permission => Permissions.RunSynchronizationModule; /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// public override void Dispose() { } } }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Settings;

namespace Tango.MachineStudio.Synchronization
{
    public class SynchronizationModuleSettings : SettingsBase
    {
        /// <summary>
        /// Gets or sets the local master database file.
        /// </summary>
        public String LocalMasterDBFile { get; set; }

        /// <summary>
        /// Gets or sets the local slave database file.
        /// </summary>
        public String LocalSlaveDBFile { get; set; }

        /// <summary>
        /// Gets or sets the remote SQLite file.
        /// </summary>
        public String RemoteSQLiteFile { get; set; }
    }
}