TYTD w api
This commit is contained in:
parent
0ba0d34596
commit
250b6e03bd
|
@ -27,12 +27,13 @@ namespace TYTD
|
|||
if(t == null)
|
||||
{
|
||||
t = new System.Timers.Timer();
|
||||
t.Elapsed += (sender, e) =>
|
||||
{
|
||||
TimerElapsed();
|
||||
};
|
||||
}
|
||||
t.Interval = timespan.TotalMilliseconds;
|
||||
t.Elapsed += (sender, e) =>
|
||||
{
|
||||
TimerElapsed();
|
||||
};
|
||||
|
||||
t.Start();
|
||||
}
|
||||
public bool TimerEnabled { get { if (t != null) { return t.Enabled; } else { return false; } } set { if (t != null) { t.Enabled = value; } } }
|
||||
|
@ -127,8 +128,8 @@ namespace TYTD
|
|||
}
|
||||
public static void Init()
|
||||
{
|
||||
string root = Path.Combine("config", "apidll");
|
||||
string appconfroot = Path.Combine("config", "apistore");
|
||||
string root = Path.Combine(Environment.CurrentDirectory,"config", "apidll");
|
||||
string appconfroot = Path.Combine(Environment.CurrentDirectory,"config", "apistore");
|
||||
foreach(var dir in Directory.GetDirectories(root))
|
||||
{
|
||||
string name = Path.GetFileName(dir);
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue