public Mp3ViewModel(IConnectionHelper connectionHelper, ICursorControl cursor, IConverter converter, IFileHelper fileHelper)
        {
            this._connectionHelper = connectionHelper;
            this._cursor           = cursor;
            this._converter        = converter;
            this._fileHelper       = fileHelper;

            Initialize();
        }
        public NavigationViewModel(IConnectionHelper connectionHelper, ICursorControl cursor, IConverter converter, IFileHelper fileHelper)
        {
            this._connectionHelper = connectionHelper;
            this._cursor           = cursor;
            this._converter        = converter;
            this._fileHelper       = fileHelper;

            SelectedViewModel  = Mp3ViewModelInstance;
            Mp3BackgroundColor = (SolidColorBrush)Application.Current.Resources["DockPanel.Background.Selected"];
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates the correct ICursorControl instance depending on the platform
 /// </summary>
 static CursorControl()
 {
     if (Application.platform == RuntimePlatform.WindowsEditor ||
         Application.platform == RuntimePlatform.WindowsPlayer)
     {
         _cursorControl = new CursorControlWindows();
     }
     //else if (Application.platform == RuntimePlatform.OSXEditor ||
     //    Application.platform == RuntimePlatform.OSXPlayer)
     //{
     //    _cursorControl = new CursorControlMac();
     //}
     else
     {
         throw new PlatformNotSupportedException("CursorControl is not supported on this platform");
     }
 }