Ejemplo n.º 1
0
        public DigiImageData ReturnValue(Control ctrl)
        {
            DigiImageData temp = new DigiImageData();

            if (text_Value1.Text != "")
            {
                temp.value[0] = Convert.ToInt16(text_Value1.Text);
            }
            if (text_Value2.Text != "")
            {
                temp.value[1] = Convert.ToInt16(text_Value2.Text);
            }
            if (text_Value3.Text != "")
            {
                temp.value[2] = Convert.ToInt16(text_Value3.Text);
            }
            if (text_Value4.Text != "")
            {
                temp.value[3] = Convert.ToInt16(text_Value4.Text);
            }

            if (text_BaseImage_Path.Text != "")
            {
                temp.basepath = text_BaseImage_Path.Text;
            }

            if (text_Value1_Path.Text != "")
            {
                temp.path[0] = text_Value1_Path.Text;
            }
            if (text_Value2_Path.Text != "")
            {
                temp.path[1] = text_Value2_Path.Text;
            }
            if (text_Value3_Path.Text != "")
            {
                temp.path[2] = text_Value3_Path.Text;
            }
            if (text_Value4_Path.Text != "")
            {
                temp.path[3] = text_Value4_Path.Text;
            }

            //tag데이터가 아니라 구분자를 tag라고 하드라 VS에서
            temp.UniqueTag = ctrl.Tag.ToString();
            temp.Postion   = ctrl.PointToClient(ctrl.Location);
            temp.height    = ctrl.Size.Height;
            temp.weight    = ctrl.Size.Width;

            if (text_TAG_Dig.Text != "")
            {
                temp.Tag = text_TAG_Dig.Text;
            }


            return(temp);
        }
Ejemplo n.º 2
0
        public void Delete_DigiImageData(DigiImageData data)
        {
            string temp = data.tag;

            foreach (DigiImageData imagedata in digiImageData)
            {
                if (imagedata.tag == temp)
                {
                    int index = digiImageData.IndexOf(imagedata);
                    digiImageData.RemoveAt(index);
                }
            }
        }
Ejemplo n.º 3
0
        private void MakeDigitalImageHtmlCode(DigiImageData 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>");

            writer.WriteLine(code.ToString());
            writer.Flush();
            writer.Close();
        }
Ejemplo n.º 4
0
        public void SetDialog(DigiImageData data)
        {
            if (data.value[0] > 0)
            {
                text_Value1.Text = data.value[0].ToString();
            }
            if (data.value[1] > 0)
            {
                text_Value2.Text = data.value[1].ToString();
            }
            if (data.value[2] > 0)
            {
                text_Value3.Text = data.value[2].ToString();
            }
            if (data.value[3] > 0)
            {
                text_Value4.Text = data.value[3].ToString();
            }

            if (data.basepath != "")
            {
                text_BaseImage_Path.Text = data.basepath;
            }

            if (data.path[0] != "")
            {
                text_Value1_Path.Text = data.path[0];
            }
            if (data.path[1] != "")
            {
                text_Value2_Path.Text = data.path[1];
            }
            if (data.path[2] != "")
            {
                text_Value3_Path.Text = data.path[2];
            }
            if (data.path[3] != "")
            {
                text_Value4_Path.Text = data.path[3];
            }

            if (data.Tag != "")
            {
                text_TAG_Dig.Text = data.Tag;
            }
        }
Ejemplo n.º 5
0
        public string EditDigitalImage(DigiImageData diData)
        {
            string temp = "";

            return(temp);
        }
Ejemplo n.º 6
0
 public void Modi_DigiImageData(DigiImageData data)
 {
 }
Ejemplo n.º 7
0
 public void Add_DigiImageData(DigiImageData data)
 {
     digiImageData.Add(data);
 }