Exemplo n.º 1
0
        public void Modi_StaticImageData(StaticImageData data)
        {
            string temp = data.tag;

            foreach (StaticImageData imagedata in staImageData)
            {
                if (imagedata.tag == temp)
                {
                    int index = staImageData.IndexOf(imagedata);
                    staImageData[index] = data;
                }
            }
        }
Exemplo n.º 2
0
        public void Delete_StaticImageData(StaticImageData data)
        {
            //tag를 분석해서 삭제하기
            string temp = data.tag;

            foreach (StaticImageData imagedata in staImageData)
            {
                if (imagedata.tag == temp)
                {
                    int index = staImageData.IndexOf(imagedata);
                    staImageData.RemoveAt(index);
                }
            }
        }
Exemplo n.º 3
0
        private void MakeStaticImageHtmlCode(StaticImageData data, string path)
        {
            System.IO.FileInfo     info   = new System.IO.FileInfo(path);
            System.IO.StreamWriter writer = File.Exists(path) ? info.AppendText() : info.CreateText();

            StringBuilder code = new StringBuilder();

            string div = string.Format("</div>");

            code.Append("<div class=\"PMS_Image_Item ui-draggable ui-draggable-handle ui-resizable\" link=\"\"");
            code.Append(" style=\"position: absolute; ");

            string position = string.Format("top: {0}px; left: {1}px; z-index: {2}; \">", data.Postion.X, data.Postion.Y, data.zindex);

            code.Append(position);

            string imagepath = string.Format("<img src=\"/symbols/{0}\" style=\"width:100%;height;100%\">", data.filename);

            code.Append(imagepath);

            string temp = string.Format("<div class=\"ui-resizable-handle ui-resizable-e\" style=\"z-index: 90;\">");

            code.Append(temp);
            code.Append(div);
            code.Append(temp);
            code.Append(div);

            temp = string.Format("<div class=\"ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se\" style=\"z-index: 90;\">");

            code.Append(temp);
            code.Append(div);
            code.Append(div);

            writer.WriteLine(code.ToString());
            writer.Flush();
            writer.Close();
        }
Exemplo n.º 4
0
        public string EditStaticImage(StaticImageData stData)
        {
            string temp = "";

            return(temp);
        }
Exemplo n.º 5
0
 public void Add_StaticImageData(StaticImageData data)
 {
     staImageData.Add(data);
 }