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
 public XBMC_Status(XBMC_Communicator p)
 {
     parent                  = p;
     heartBeatTimer          = new Timer();
     heartBeatTimer.Interval = connectedInterval;
     heartBeatTimer.Elapsed += new ElapsedEventHandler(heartBeatTimer_Elapsed);
 }
Exemplo n.º 3
0
 public XBMC_Status(XBMC_Communicator p)
 {
     parent = p;
     heartBeatTimer = new Timer();
     heartBeatTimer.Interval = connectedInterval;
     heartBeatTimer.Tick += new EventHandler(HeartBeat_Tick);
 }
Exemplo n.º 4
0
        //private Timer heartBeatTimer = null;
        //private int connectedInterval = 5000;
        //private int disconnectedInterval = 10000;

        public XBMC_Status(XBMC_Communicator p)
        {
            parent = p;
            //heartBeatTimer = new Timer();
            //heartBeatTimer.Interval = connectedInterval;
            //heartBeatTimer.Tick += new EventHandler(HeartBeat_Tick);
        }
Exemplo n.º 5
0
 public PlayStatusF1()
 {
     XBMC          = new XBMC_Communicator();
     Animate       = new Animation();
     screenHeight  = SystemInformation.PrimaryMonitorSize.Height;
     screenWidth   = SystemInformation.PrimaryMonitorSize.Width;
     InitializeComponent();
     SetFormPosition();
     ShowCoverArt();
 }
Exemplo n.º 6
0
 public XBMC_NowPlaying(XBMC_Communicator p)
 {
     parent         = p;
     Song           = new MusicSong();
     FistTime       = true;
     timer          = new Timer();
     timer.Interval = 1000;
     timer.Elapsed += new ElapsedEventHandler(timer_Elapsed);
     timer.Enabled  = true;
     timer.Start();
 }
Exemplo n.º 7
0
 public MainForm()
 {
     Language = new XBMCLanguage();
     XBMC = new XBMC_Communicator();
     XBMC.SetIp(Settings.Default.Ip);
     XBMC.SetConnectionTimeout(Settings.Default.ConnectionTimeout);
     XBMC.SetCredentials(Settings.Default.Username, Settings.Default.Password);
     InitializeComponent();
     ApplySettings();
     SetLanguageStrings();
     Initialize();
 }
Exemplo n.º 8
0
 public XBMC_Controls(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 9
0
 /// <summary>
 ///  Initialise objects
 /// </summary>
 private void InitObjects()
 {
     oHelper			= new HelperFunctions(this);
     oConfiguration 	= new Configuration(this);
     oXbmc 			= new XBMC_Communicator();
     oShareBrowser 	= new ShareBrowser(this);
     oFileBrowser	= new FileBrowser(this);
     oMenuItems		= new MenuItems(this);
     oContextMenu	= new ContextMenu(this);
     oSysTrayIcon 	= new SysTrayIcon(this);
     oControls		= new Controls(this);
     oPlaylist		= new Playlist(this);
     oGenreBrowser	= new GenreBrowser(this);
     oArtistBrowser 	= new ArtistBrowser(this);
     oAlbumBrowser	= new AlbumBrowser(this);
     oStatusUpdate	= new StatusUpdate(this);
 }
Exemplo n.º 10
0
 public XBMC_Playlist(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 11
0
 public XBMC_Playlist(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 12
0
 public XBMC_Controls(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 13
0
 public XBMC_NowPlaying(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 14
0
 public XBMC_Video(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 15
0
 public XBMC_Media(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 16
0
 public XBMC_Database(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 17
0
 public XBMC_Media(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 18
0
 public XBMC_NowPlaying(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 19
0
 private void XbmcConnect()
 {
     oXbmc = new XBMC_Communicator();
     oXbmc.SetIp("10.0.0.5");
     oXbmc.SetConnectionTimeout(4000);
     oXbmc.SetCredentials("", "");
     oXbmc.Status.StartHeartBeat();
 }
Exemplo n.º 20
0
 public XBMC_Database(XBMC_Communicator p)
 {
     parent = p;
 }
Exemplo n.º 21
0
 public XBMC_Video(XBMC_Communicator p)
 {
     parent = p;
 }