Exemplo n.º 1
0
    public MainWindow() : base(Gtk.WindowType.Toplevel)
    {
        oXbmc = new XBMC_Communicator();
        oXbmc.SetIp("10.0.0.5");
        oXbmc.SetConnectionTimeout(4000);
        oXbmc.SetCredentials("", "");
        oXbmc.Status.StartHeartBeat();

        Build();

        this.AllowStaticAccess();

        //Create objects used
        oPlaylist     = new Playlist(this);
        oControls     = new Controls(this);
        oMenuItems    = new MenuItems(this);
        oContextMenu  = new ContextMenu(this);
        oShareBrowser = new ShareBrowser(this);
        oTrayicon     = new SysTrayIcon(this);
        oStatusUpdate = new StatusUpdate(this);
        oMediaInfo    = new MediaInfo(this);
        oNowPlaying   = new NowPlaying(this);
        oGuiConfig    = new GuiConfig(this);

        nbDataContainer.CurrentPage = 0;
    }
Exemplo n.º 2
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ThemeClass theme = new ThemeClass();

            theme.ToggleAutoThemeSwitcherByLight();
            theme.RunThemeByLightSwitcher();

            SysTrayIcon.GenerateSystemTrayIcon(theme);
        }
Exemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Show the system tray icon.
            using (SysTrayIcon sti = new SysTrayIcon())
            {
                sti.UpdateDisplay();

                // Make sure the application runs!
                Application.Run();
                Console.WriteLine("Done!");
            }
        }