-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubtitleObject.cs
More file actions
47 lines (39 loc) · 1.57 KB
/
SubtitleObject.cs
File metadata and controls
47 lines (39 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace SmiToSrt
{
public class SubtitleObject : DependencyObject
{
public int Index
{
get { return (int)GetValue(IndexProperty); }
set { SetValue(IndexProperty, value); }
}
public static readonly DependencyProperty IndexProperty =
DependencyProperty.Register("Index", typeof(int), typeof(SubtitleObject), new PropertyMetadata(-1));
public TimeSpan Start
{
get { return (TimeSpan)GetValue(StartProperty); }
set { SetValue(StartProperty, value); }
}
public static readonly DependencyProperty StartProperty =
DependencyProperty.Register("Start", typeof(TimeSpan), typeof(SubtitleObject), new PropertyMetadata(TimeSpan.MinValue));
public TimeSpan Stop
{
get { return (TimeSpan)GetValue(StopProperty); }
set { SetValue(StopProperty, value); }
}
public static readonly DependencyProperty StopProperty =
DependencyProperty.Register("Stop", typeof(TimeSpan), typeof(SubtitleObject), new PropertyMetadata(TimeSpan.MinValue));
public string Text
{
get { return (string)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
public static readonly DependencyProperty TextProperty =
DependencyProperty.Register("Text", typeof(string), typeof(SubtitleObject), new PropertyMetadata(String.Empty));
}
}