public MainViewModel()
        {
            ButtplugApiVersion  = ButtplugAdapter.GetButtplugApiVersion();
            Playlist            = new PlaylistViewModel();
            Playlist.PlayEntry += PlaylistOnPlayEntry;

            ConversionModes            = Enum.GetValues(typeof(ConversionMode)).Cast <ConversionMode>().ToList();
            _supportedScriptExtensions = ScriptLoaderManager.GetSupportedExtensions();

            InitializeCommands();
            InitializeTestPatterns();
            InitializeLaunchFinder();
            InitializeScriptHandler();
        }
Ejemplo n.º 2
0
        private void TryFindMatchingScript(string filename)
        {
            if (VideoAndScriptNamesMatch())
            {
                return;
            }

            string scriptFile = FindFile(filename, ScriptLoaderManager.GetSupportedExtensions());

            if (!String.IsNullOrWhiteSpace(scriptFile))
            {
                string nameOnly = Path.GetFileName(scriptFile);
                if (MessageBox.Show(this, $"Do you want to also load '{nameOnly}'?", "Also load Script?", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
                {
                    LoadScript(scriptFile, false);
                }
            }
        }
Ejemplo n.º 3
0
        public MainWindow()
        {
            _supportedScriptExtensions = ScriptLoaderManager.GetSupportedExtensions();

            InitializeComponent();
        }