3 using System.Collections;
4 using System.Collections.Generic;
8 using System.Threading.Tasks;
10 using System.Windows.Controls;
11 using System.Windows.Forms;
13 using System.Xml.Serialization;
63 using (MemoryStream stream =
new MemoryStream())
65 XmlSerializer s =
new XmlSerializer(typeof(List<gPath>));
71 stream.Seek(0, SeekOrigin.Begin);
73 StreamReader sr =
new StreamReader(stream);
74 string myStr = sr.ReadToEnd();
76 System.Windows.Clipboard.SetText(myStr);
85 String str = System.Windows.Clipboard.GetText();
88 XmlSerializer serializer =
new XmlSerializer(typeof(List<gPath>));
89 using (MemoryStream ms =
new MemoryStream(System.Text.Encoding.UTF8.GetBytes(str)))
91 List<gPath> tpList = (List< gPath>) serializer.Deserialize(XmlReader.Create(ms));
92 foreach (
gPath tp
in tpList)
122 public System.Windows.Controls.UserControl
Root;
List< gPath > multiSelList
System.Windows.Point controlBtn3
void writeIn(gPath Data, int Action)
維護 undo stack ,把目前狀態存起來.並清空redo stack,如果之前有undo 動作,是回覆到某一狀態,在此之後的動作都可清除
System.Windows.Point controlBtn4
某一類的形狀.包含UI 的界面,繪製方式.更新方式.新增方式
System.Windows.Point controlBtn2
void redraw(int removetype)
記錄shape list,action data stack 記錄動作,每個動作(pointAry)包含,該圖是圖形的第幾個(Listplace),之前記錄是否己有相同圖是第幾個,...
static IList< ShapeObj > SupportedShape(getForm myview)
define supported shape
static IList< ShapeObj > ret
System.Windows.Point controlBtn1
System.Windows.Controls.UserControl Root