Exemplo n.º 1
0
        public void InputBtn(TitleBtn btn)
        {
            btn.Size     = new Size((int)((float)Height * 3.5), Height - (10));
            btn.Location = new Point(curPoint.X, curPoint.Y);

            Controls.Add(btn);

            xLoc    += (margin + btn.Size.Width);
            curPoint = new Point(xLoc, 0);
        }
Exemplo n.º 2
0
        public void InputBtn(TitleBtn btn)
        {
            btn.Size = new Size((int)((float)Height*3.5), Height - (10));
            btn.Location = new Point(curPoint.X, curPoint.Y);

            Controls.Add(btn);

            xLoc += (margin + btn.Size.Width);
            curPoint = new Point(xLoc, 0);

        }
Exemplo n.º 3
0
        private void setImgBtn()
        {
            // imgBtnContainer1

            // 첫번째 아이콘 추가
            ImageBtn weekBtn = new ImageBtn();
            weekBtn.img = new Bitmap(Environment.CurrentDirectory + "\\Image\\Week.png");
            weekBtn.ImgName = "Week";
            weekBtn.str = "주 단위 정산";
            weekBtn.Click += WeekBtn_Click;
            imgBtnContainer1.InputBtn(weekBtn);

            // 두번째 아이콘 추가
            ImageBtn monthBtn = new ImageBtn();
            monthBtn.img = new Bitmap(Environment.CurrentDirectory + "\\Image\\Month.png");
            monthBtn.ImgName = "Month";
            monthBtn.str = "월 단위 정산";
            monthBtn.Click += MonthBtn_Click;
            imgBtnContainer1.InputBtn(monthBtn);

            // 세번째 아이콘 추가
            ImageBtn yearBtn = new ImageBtn();
            yearBtn.img = new Bitmap(Environment.CurrentDirectory + "\\Image\\Year.png");
            yearBtn.ImgName = "Year";
            yearBtn.str = "년 단위 정산";
            yearBtn.Click += YearBtn_Click;
            imgBtnContainer1.InputBtn(yearBtn);
            
            // imgBtnContainer2

            ImageBtn budgetBtn = new ImageBtn();
            budgetBtn.img = new Bitmap(Environment.CurrentDirectory + "\\Image\\Budget.png");
            budgetBtn.ImgName = "Budget";
            budgetBtn.Click += BudgetBtn_Click;
            imgBtnContainer2.InputBtn(budgetBtn);

            TitleBtn LogoBtn = new TitleBtn();
            LogoBtn.img = new Bitmap(Environment.CurrentDirectory + "\\Image\\Title.png");
            LogoBtn.ImgName = "Title";
            // LogoBtn.Click
            imgBtnContainer2.InputBtn(LogoBtn);
        }