Пример #1
0
 private static void Present(IDBusPlayer remote_player)
 {
     remote_player.PresentWindow();
 }
Пример #2
0
        private static void HandleDbusCommands(IDBusPlayer remote_player, string[] args)
        {
            if(remote_player == null) {
                return;
            }

            bool present = true;

            if (args.Length > 0) {
                // FIXME: Do some better argument checking
                remote_player.ChangeStation (args[0]);
                Present(remote_player);
                present = false;
            }

            if(present) {
                try {
                    Present(remote_player);
                } catch (Exception e) {
                    Console.WriteLine(e);
                    return;
                }
            }

            Gdk.Global.NotifyStartupComplete();
            System.Environment.Exit(0);
        }