-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackbone.cs
More file actions
69 lines (61 loc) · 1.68 KB
/
Backbone.cs
File metadata and controls
69 lines (61 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
using System.Threading;
using System.Numerics;
namespace Theme.WPF
{
public class Singulum
{
}
public class SingulumData
{
public bool isNew = false;
}
public class Backbone
{
public Backbone(string storage)
{
DataStorage = storage;
}
public void Initialize()
{
// This method runs asynchronously.
//int t = await Task.Run(() => Allocate());
//Console.WriteLine("Compute: " + t);
SingulumData _RES = new SingulumData();
_RES = tryLoad("::");
this.Status = 0x01; // 0x01 = init started
if ( _RES.isNew == true )
{
this.Status = 0xff; //data is new. nready for work
}
else
{
this.Status = 0x02; //ready for work (data loaded successfully)
}
}
public byte Status { get; internal set; } = 0x00;
public string DataStorage { get; internal set; }
public Singulum protocol = new Singulum();
public SingulumData tryLoad(string path)
{
Thread.Sleep(100);
return new SingulumData();
}
}
}