Blame view

OS.Spin/OS.Spin.ViewModle/Models/ImageData.cs 1.82 KB
8ca6e89d   Tuo Wenbo   20211021
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
70
71
72
73
74
75
76
  namespace OS.Spin.ViewModle.Models
  {
      public class ImageData
      {
          private int type;   //类型(瑕疵图片的类型)
          private int choice;     //选择或非选择(每个图片都只有一种状态存在)
          private double startX; //该图标的横坐标
          private double startY; //该图标的纵坐标
  
          public ImageData() { }
          //意思说第一次传值的时候是不需要设置选择或非选择状态的
          public ImageData(int type, double startX, double startY)
          {
              this.type = type;
              this.startX = startX;
              this.startY = startY;
          }
  
          public ImageData(int type, int choice, double startX, double startY)
          {
              this.type = type;
              this.choice = choice;
              this.startX = startX;
              this.startY = startY;
          }
  
          public int Type
          {
              get
              {
                  return type;
              }
              set
              {
                  type = value;
              }
          }
          public int Choice
          {
              get
              {
                  return choice;
              }
              set
              {
                  choice = value;
              }
          }
          public double StartX
          {
              get
              {
                  return startX;
              }
              set
              {
                  startX = value;
              }
          }
          public double StartY
          {
              get
              {
                  return startY;
              }
              set
              {
                  startY = value;
              }
          }
          public override string ToString()
          {
              return string.Format("type:{0},choice:{1},startX:{2},startY:{3}", this.type, this.choice, this.startX, this.startY);
          }
      }
  }