コード例 #1
0
        private SourceImageFactory()
        {
            imageDoc = new XmlDocument();
            imageDoc.Load(Constants.FILE_IMAGES);
            imageRoot = imageDoc.DocumentElement;

            tagOrganizer = TagOrganizer.getInstance();
        }
コード例 #2
0
        private SourceImageFactory()
        {
            imageDoc = new XmlDocument();
            imageDoc.Load(Constants.FILE_IMAGES);
            imageRoot = imageDoc.DocumentElement;

            tagOrganizer = TagOrganizer.getInstance();
        }
コード例 #3
0
ファイル: FormImages.cs プロジェクト: pvilchez/ImageSource
        /// <summary>
        /// Constructor.  This gets instances of necessary classes, gets
        /// lists of tag types and images, and add a closing handler.
        /// </summary>
        public FormImages()
        {
            InitializeComponent();

            //Get instances
            sourceImageOrganizer = SourceImageOrganizer.getInstance();
            tagOrganizer = TagOrganizer.getInstance();

            //Add a handler to make sure that the window doesn't get destroyed when it's closed
            this.FormClosing += new FormClosingEventHandler(FormImages_FormClosing);

            //get tag type and image lists
            refreshTagTypeList();
            refreshImageList();
        }
コード例 #4
0
        /// <summary>
        /// Constructor.  This gets instances of necessary classes, gets
        /// lists of tag types and images, and add a closing handler.
        /// </summary>
        public FormImages()
        {
            InitializeComponent();

            //Get instances
            sourceImageOrganizer = SourceImageOrganizer.getInstance();
            tagOrganizer         = TagOrganizer.getInstance();

            //Add a handler to make sure that the window doesn't get destroyed when it's closed
            this.FormClosing += new FormClosingEventHandler(FormImages_FormClosing);

            //get tag type and image lists
            refreshTagTypeList();
            refreshImageList();
        }
コード例 #5
0
        /// <summary>
        /// Constructor.  The image provided will be used to search
        /// for tags applied to the image.
        /// </summary>
        /// <param name="image">The image the tags apply to.</param>
        public FormImageTags(SourceImage image)
        {
            InitializeComponent();

            //set the source image
            sourceImage = image;

            //get a TagOrganizer instance
            tagOrganizer = TagOrganizer.getInstance();

            //add closing handler
            this.FormClosing += new FormClosingEventHandler(FormImageTags_FormClosing);

            //get new taglist
            refreshTagList();
        }
コード例 #6
0
        public FormTags()
        {
            InitializeComponent();

            dataTypes.Add("Integer");
            dataTypes.Add("Date");
            dataTypes.Add("String");

            comboBoxDataType.DataSource = dataTypes;

            tagOrganizer = TagOrganizer.getInstance();
            refreshTagTypeList();

            //Add a handler to make sure that the window doesn't get destroyed when it's closed
            this.FormClosing += new FormClosingEventHandler(FormTags_FormClosing);
        }
コード例 #7
0
ファイル: FormImageTags.cs プロジェクト: pvilchez/ImageSource
        /// <summary>
        /// Constructor.  The image provided will be used to search
        /// for tags applied to the image.
        /// </summary>
        /// <param name="image">The image the tags apply to.</param>
        public FormImageTags( SourceImage image )
        {
            InitializeComponent();

            //set the source image
            sourceImage = image;

            //get a TagOrganizer instance
            tagOrganizer = TagOrganizer.getInstance();

            //add closing handler
            this.FormClosing += new FormClosingEventHandler(FormImageTags_FormClosing);

            //get new taglist
            refreshTagList();
        }
コード例 #8
0
ファイル: FormTags.cs プロジェクト: pvilchez/ImageSource
        public FormTags()
        {
            InitializeComponent();

            dataTypes.Add("Integer");
            dataTypes.Add("Date");
            dataTypes.Add("String");

            comboBoxDataType.DataSource = dataTypes;

            tagOrganizer = TagOrganizer.getInstance();
            refreshTagTypeList();

            //Add a handler to make sure that the window doesn't get destroyed when it's closed
            this.FormClosing += new FormClosingEventHandler(FormTags_FormClosing);
        }