-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mouse overlay and current time stretched vertically
mouse overlay hidden on MouseLeave no epg data display added FIX: timeline no visible "no epg" after last epg item improved epg navigation scrolling epg text for better readability
- Loading branch information
Showing
6 changed files
with
218 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Imports System.Collections.ObjectModel | ||
Imports Newtonsoft.Json | ||
Imports SatIPTV.Helper | ||
Imports SatIPTV.ViewModels | ||
|
||
Namespace ViewModels.Models | ||
Public Class NonEpgInfoViewModel | ||
Inherits ViewModelBase | ||
|
||
Public Property StartTime As String | ||
|
||
Public Property EndTime As String | ||
|
||
Public ReadOnly Property Duration As Integer | ||
Get | ||
Return (GetLocalEndTime() - GetLocalStartTime()).TotalSeconds | ||
End Get | ||
End Property | ||
|
||
Public ReadOnly Property Width As Integer | ||
Get | ||
Return Duration / 10 | ||
End Get | ||
End Property | ||
|
||
Public Property Title As String | ||
|
||
Public Sub New(duration As Long) | ||
Me.StartTime = 0 | ||
Me.EndTime = duration | ||
Me.Title = "Keine EPG-Daten vorhanden" | ||
End Sub | ||
|
||
Public Function GetLocalStartTime() As Date | ||
Dim startTime As New DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc) | ||
Return startTime.AddSeconds(Me.StartTime).ToLocalTime() | ||
End Function | ||
|
||
Public Function GetLocalEndTime() As Date | ||
Dim endtime As New DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc) | ||
Return endtime.AddSeconds(Me.EndTime).ToLocalTime() | ||
End Function | ||
End Class | ||
End Namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.