Example #1
0
        static void Main(string[] args)
        {
            var lrControlApplication = LrControlApplication.Create();

            lrControlApplication.ConnectionStatus += (connected, version) =>
                                                     System.Console.WriteLine($"Connection status: {connected} {version}");

            lrControlApplication.UpdateConnectionStatus();

            System.Console.ReadLine();
        }
Example #2
0
        private void ShowMainWindow()
        {
            // Create and show main window
            _lrControlApplication = LrControlApplication.Create();

            var mainWindow = new MainWindow
            {
                WindowState = _lrControlApplication.Settings.StartMinimized ? WindowState.Minimized : WindowState.Normal
            };

            mainWindow.ViewModel = new MainWindowModel(Dispatcher.CurrentDispatcher, _lrControlApplication, new MainWindowDialogProvider(mainWindow));
            mainWindow.Show();
        }