Esempio n. 1
0
        private void eXPORTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //출력 파일 이름은 main background name 으로

            string strSavename = this.Text;
            string path        = MakeHtmlTextFile(strSavename);

            //  controlsInfoStr = ControlMoverOrResizer.GetControlFormat(this);

            //foreach (AnaTextData textdata in altextData)
            //{
            //    textdata.GetData();
            //    string jsonstring = JsonConvert.SerializeObject(textdata, Formatting.None);
            //    MakeAnalogueTextHtmlCode(textdata, path);
            //}

            //foreach (DigiImageData imagedata in digiImageData)
            //{
            //    imagedata.GetData();
            //    string jsonstring = JsonConvert.SerializeObject(imagedata, Formatting.None);
            //    MakeDigitalImageHtmlCode(imagedata, path);
            //}
            DataStructALL          DataContainer = DataStructALL.Instance();
            List <StaticImageData> staImageData  = DataContainer.Info_StaticImageData();

            foreach (StaticImageData imagedata in staImageData)
            {
                imagedata.GetData();
                string jsonstring = JsonConvert.SerializeObject(imagedata, Formatting.None);

                MakeStaticImageHtmlCode(imagedata, path);
            }
        }
Esempio n. 2
0
        //작업 이미지 불러오기
        private void loadImageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string filepath = string.Empty;

            OpenFileDialog dialog = new OpenFileDialog();

            dialog.InitialDirectory = @"D:\";

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                filepath  = dialog.FileName;
                this.Text = Path.GetFileNameWithoutExtension(dialog.FileName);
            }
            else if (dialog.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            Image bgImage = Image.FromFile(filepath);

            this.BackgroundImage       = bgImage;
            this.BackgroundImageLayout = ImageLayout.Stretch;
            this.Refresh();

            DataStructALL DataContainer = DataStructALL.Instance();

            DataContainer.DeleteAllData();
        }
Esempio n. 3
0
 public static DataStructALL Instance()
 {
     if (singleDataStructAll == null)
     {
         singleDataStructAll = new DataStructALL();
     }
     return(singleDataStructAll);
 }