public PYJ_DrawHelpDialog(DataSet _ds, Control _ctl, ObjectsCollection _objects, string _key, DrawHelper _dh)
        {
            InitializeComponent();
            ds  = _ds;
            ctl = _ctl;
            //CurrentRow = _curRow;
            Objects = _objects;
            key     = _key;
            dh      = _dh;

            dlg.Title            = "이미지 추가";
            dlg.InitialDirectory = Application.StartupPath;
            dlg.Filter           = "All Image Files|*.jpg;*.gif;*.png;*.bmp|JPEG Images|*.jpg|GIF Images|*.gif|PNG Images|*.png";
            dlg.RestoreDirectory = true;
        }
Example #2
0
        /// <summary>
        /// 오브젝트컬렉션의 모든 오브젝트들을 복사합니다.
        /// </summary>
        /// <returns>복사된 ObjectsCollection</returns>
        public ObjectsCollection Clone()
        {
            ObjectsCollection rtnObj = new ObjectsCollection();

            ArrayList arrNew = new ArrayList();
            Hashtable htNew  = new Hashtable();

            foreach (object o in arrObjects)
            {
                DrawObject obj = CopyObject((DrawObject)o);
                arrNew.Add(obj);
                htNew.Add(obj.Key, obj);
            }
            rtnObj.arrObjects = arrNew;
            rtnObj.htObjects  = htNew;
            return(rtnObj);
        }