예제 #1
0
        public string contentInForm(ArrayList aControls,
                                    ArrayList aContent,
                                    string except)
        {
            controlsForm cnt = new controlsForm();
            Clibrary     cl  = new Clibrary();

            string[] aLine;
            string   returnValue = "";
            Color    okC         = cl.hex("#c4face");

            foreach (string line in aContent)
            {
                aLine = line.Split('~');
                if (aLine[0].IndexOf(except) > (-1))
                {
                    returnValue = aLine[1];
                }
                foreach (Control element in aControls)
                {
                    if (aLine[0].IndexOf(element.Name) > (-1))
                    {
                        cnt.element(false, element, aLine[1], true);
                    }
                }
            }
            return(returnValue);
        }
예제 #2
0
        public ArrayList formSaveInFile(ArrayList aControls,
                                        string fileName)
        {
            controlsForm cnt   = new controlsForm();
            ArrayList    eData = new ArrayList();

            foreach (Control element in aControls)
            {
                eData.Add(element.Name + "~" + cnt.element(true, element, "~", false));
            }
            return(eData);
        }
예제 #3
0
        public void resetContent(ArrayList aControls)
        {
            controlsForm cnt = new controlsForm();

            foreach (Control element in aControls)
            {
                cnt.element(false, element, "", false);
                if (element.Name.IndexOf("pict") == 0)
                {
                    PictureBox oImage = element as PictureBox;
                    oImage.Image = null;
                }
            }

            foreach (Control element in aControls)
            {
                cnt.resetColor(element);
            }
        }