This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Smots.Common.Database; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using XSockets.Core.XSocket; | |
using XSockets.Core.XSocket.Helpers; | |
using Smots.Interface.Model; | |
using System.IO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
string path = Path.GetDirectoryName( Assembly.GetEntryAssembly().Location); | |
string name = Path.Combine(path, "TestCOM45.dll"); | |
Assembly ass = Assembly.LoadFile(name); | |
object obj = ass.CreateInstance("TestCOM45.TestCOMLib"); | |
ITestCom test = obj as ITestCom; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.ObjectModel; | |
using System.Threading; | |
using GalaSoft.MvvmLight; | |
using GalaSoft.MvvmLight.Command; | |
using TrinityToolkit; | |
using TrinityPlayer.Model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The property on the MainViewModel should look like this | |
public ViewModelBase MyViewModel | |
{ | |
get | |
{ | |
return ServiceLocator.Current.GetInstance<SettingsViewModel>(); | |
} | |
set | |
{ |