My Project
C:/Users/Lab_411_02/Desktop/Violet1 - dox/violet/violet/Form1.cs
查看本檔案說明文件.
1 using ShapeLib.VShape;
2 using System;
3 using System.Collections.Generic;
7 using System.ComponentModel;
8 using System.Data;
9 using System.Drawing;
10 using System.Linq;
11 using System.Text;
12 using System.Threading.Tasks;
13 
16 using System.Windows.Forms;
17 using System.Windows.Controls;
18 
19 namespace violet
20 {
21  public partial class Form1 : Form, IForm
22  {
23  double Swidth;
24  double Sheight;
25  public Form1()
26  {
28  }
29  private void Form1_Load(object sender, EventArgs e)
30  {
31 
32 
33  }
34 
35 
39  public void drawBackgroundLine(double Sop)
40  {
41  if (Sop != 0)
43  else
45  }
46 
50  public double setFormSize(String ctype)
51  {
52  if (ctype == "w")
53  {
54  Swidth = Screen.PrimaryScreen.Bounds.Width;
55  return Swidth;
56  }
57  Sheight = Screen.PrimaryScreen.Bounds.Height;
58  return Sheight;
59  }
60 
64  public void setDrawType(int ntype)
65  {
66  userControl1.drawtype = ntype;
67  if (ntype == 5)
69  }
70 
74  public void setColorType(String colorName)
75  {
76  userControl1.color(colorName);
77  }
78 
82  public void ClearDrawing()
83  {
85  }
86 
90  public void setStrokeType(int ntype)
91  {
92  userControl1.stroke(ntype);
93  }
94 
98  public void initpath(string xml)
99  {
100  userControl1.initpath(xml);
101  }
102 
106  public void setAction(int act)
107  {
108  userControl1.RUdo(act);
109  }
110 
111 
112 
113  public System.Windows.Controls.Canvas drawControl
114  {
115  get { return userControl1.mygrid; }
116  }
117 
118 
119 
120 
121 
122 
123 
124  public System.Windows.Controls.UserControl getRoot
125  {
126  get { return (System.Windows.Controls.UserControl)userControl1; }
127  }
128  }
129 }
130 
System.Windows.Controls.UserControl getRoot
Definition: Form1.cs:125
void setDrawType(int ntype)
設定目前動作
Definition: Form1.cs:64
void hiddenCanvas()
隱藏myControl
void setStrokeType(int ntype)
設定線條粗細
Definition: Form1.cs:90
int drawtype
初始設定
void initpath(string xml)
載入XML
Definition: Form1.cs:98
void color(String CName)
UserControl1 userControl1
void Form1_Load(object sender, EventArgs e)
Definition: Form1.cs:29
void drawBackLine(double w, double h, double opac)
畫背景格線
void ClearDrawing()
清除畫布
Definition: Form1.cs:82
void drawBackgroundLine(double Sop)
繪製背景格線
Definition: Form1.cs:39
使UNIX上開發的C程式移植到windows上 /summary>
Definition: Form1.cs:19
void stroke(int stroketype)
void setColorType(String colorName)
設定顏色
Definition: Form1.cs:74
double Sheight
Definition: Form1.cs:24
internal System.Windows.Controls.Canvas mygrid
double Swidth
Definition: Form1.cs:23
void InitializeComponent()
Required method for Designer support - do not modify the contents of this method with the code editor...
System.Windows.Controls.Canvas drawControl
Definition: Form1.cs:114
void setAction(int act)
選擇使用Redo或Undo
Definition: Form1.cs:106
void initpath(string xml)
double setFormSize(String ctype)
取得設定用的畫布大小
Definition: Form1.cs:50