public Portal(string cookie, MainForm mainForm) { this.cookie = cookie; this.mainForm = mainForm; // board 초기화 for (int i = 0; i < 10 * 10; i++) { board1[i] = new PortalBoard(); board2[i] = new PortalBoard(); board3[i] = new PortalBoard(); board4[i] = new PortalBoard(); } for (int i = 0; i < 3 * 10; i++) { new_board4[i] = new PortalBoard(); } setBoard(board1, a1, 1, 3); setBoard(board2, a2, 1, 3); setBoard(board3, a3, 1, 3); setLastestBoard(1, 3); taskbarNotifier = new TaskbarNotifier(); taskbarNotifier.SetBackgroundBitmap(new Bitmap(GetType(), "skin.bmp"), Color.FromArgb(255, 0, 255)); taskbarNotifier.SetCloseBitmap(new Bitmap(GetType(), "close.bmp"), Color.FromArgb(255, 0, 255), new Point(121, 13)); taskbarNotifier.TitleRectangle = new Rectangle(30, 13, 80, 25); taskbarNotifier.ContentRectangle = new Rectangle(12, 30, 125, 72); taskbarNotifier.CloseClickable = true; taskbarNotifier.TitleClickable = false; taskbarNotifier.ContentClickable = true; taskbarNotifier.EnableSelectionRectangle = true; taskbarNotifier.KeepVisibleOnMousOver = true; taskbarNotifier.ReShowOnMouseOver = true; taskbarNotifier.Show("새 글 알리미", "\n포탈 공지의 새 글을\n 알려줍니다 :)", 500, 3000, 500); }
public void timer_Tick(object sender, EventArgs e) { TaskbarNotifier taskbarNotifier = new TaskbarNotifier(); taskbarNotifier.SetBackgroundBitmap(new Bitmap(GetType(), "skin.bmp"), Color.FromArgb(255, 0, 255)); taskbarNotifier.SetCloseBitmap(new Bitmap(GetType(), "close.bmp"), Color.FromArgb(255, 0, 255), new Point(121, 13)); taskbarNotifier.TitleRectangle = new Rectangle(30, 13, 80, 25); taskbarNotifier.ContentRectangle = new Rectangle(12, 30, 125, 72); taskbarNotifier.CloseClickable = true; taskbarNotifier.TitleClickable = false; taskbarNotifier.ContentClickable = true; taskbarNotifier.EnableSelectionRectangle = true; taskbarNotifier.KeepVisibleOnMousOver = true; taskbarNotifier.ReShowOnMouseOver = true; taskbarNotifier.Show("알림", content, 500, 3000, 500); AlarmForm.taskCount--; timer.Stop(); }