Exemplo n.º 1
0
        public SearchImage()
        {
            InitializeComponent();
            searchListDAO = new SearchListDAO();
            parsingData   = new ParsingData();
            list          = new List <ImageData>();

            searchTextBox.Text       = "검색어 입력!";
            searchTextBox.Foreground = Brushes.Gray;
        }
Exemplo n.º 2
0
        private CommonEvent commonEvent;     //버튼 액션에 대한 처리를 위한 객체


        //기본 생성자로써 객체들 초기화와 각각의 이벤트들을 추가한다.
        public SearchImage()
        {
            InitializeComponent();
            searchListDAO = new SearchListDAO();
            parsingData   = new ParsingData();
            list          = new List <ImageData>();
            commonEvent   = new CommonEvent();

            searchTextBox.Text       = "검색어 입력!";
            searchTextBox.Foreground = Brushes.Gray;

            Search.Foreground = Constants.ENTER[1];
            Search.Background = Constants.ENTER[0];

            Search.MouseEnter += commonEvent.Button_MouseEnter;
            Search.MouseLeave += commonEvent.Button_MouseLeave;

            searchTextBox.KeyDown += TextBox_KeyDown;
        }