/// <summary> /// Initializes a new instance of the <see cref="ReadingPane"/> class. /// </summary> public ReadingPane() { InitializeComponent(); lblMessageHeader.Font = FontFactory.GetDefaultFont(10F, FontStyle.Bold); flPanelHeader.ForeColor = SystemColors.ControlText; }
/// <summary> /// Initializes a new instance of the <see cref="ScheduleCalendar"/> class. /// </summary> public ScheduleCalendar() { RecurringColor2 = Color.LightGreen; RecurringColor = Color.Green; SingleColor2 = Color.LightBlue; SingleColor = Color.Blue; BlockingColor = Color.Red; TextColor = Color.White; EntryFont = FontFactory.GetDefaultFont(7.0f); }
/// <summary> /// /// </summary> /// <param name="e"></param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.lvPoints.Font = FontFactory.GetFont("Arial", 9F); this.throbber.State = ThrobberState.Rotating; m_thread = new Thread(new ThreadStart(Run)); m_thread.Start(); lvPoints.Font = FontFactory.GetDefaultFont(9F, FontStyle.Regular); }
/// <summary> /// Setup the list of developers and the standard font /// </summary> public AboutWindow() { InitializeComponent(); devsList.SelectedIndexChanged += devsList_SelectedIndexChanged; EVEMonLabel.Font = FontFactory.GetDefaultFont(8.25F, FontStyle.Bold); DevContribLabel.Font = FontFactory.GetDefaultFont(8.25F, FontStyle.Bold); CredentialsLabels.Font = FontFactory.GetDefaultFont(8.25F, FontStyle.Bold); // list of headings m_headers = new SortedList { { 1, "Guru" }, { 2, "Guru (Retired)" }, { 3, "Consultants" }, { 4, "Developers" }, { 5, "Developers (Retired)" }, { 6, "Contributors" } }; // list of developers by heading m_developersList = new SortedList { // EVEMon Guru { "Blitz Bandis", 1 }, // Guru (Retired) { "Jimi", 2 }, { "Araan Sunn", 2 }, { "Six Anari", 2 }, { "Anders Chydenius", 2 }, { "Brad Stone", 2 }, { "Eewec Ourbyni", 2 }, { "Richard Slater", 2 }, { "Vehlin", 2 }, // Consultants { "MrCue", 3 }, { "Nericus Demeeny", 3 }, { "Tonto Auri", 3 }, // Developers { "Peter Han", 4 }, // Developers (Retired) { "Collin Grady", 5 }, { "DCShadow", 5 }, { "DonQuiche", 5 }, { "Grauw", 5 }, { "Jalon Mevek", 5 }, { "Labogh", 5 }, { "romanl", 5 }, { "Safrax", 5 }, { "Stevil Knevil", 5 }, { "TheBelgarion", 5 }, // Contributors { "Abomb", 6 }, { "Adam Butt", 6 }, { "Aethlyn", 6 }, { "Aevum Decessus", 6 }, { "aliceturing", 6 }, { "aMUSiC", 6 }, { "Arengor", 6 }, { "ATGardner", 6 }, { "Barend", 6 }, { "berin", 6 }, { "bugusnot", 6 }, { "Candle", 6 }, { "coeus", 6 }, { "CrazyMahone", 6 }, { "CyberTech", 6 }, { "Derath Ellecon", 6 }, { "Dariana", 6 }, { "Eviro", 6 }, { "exi", 6 }, { "FangVV", 6 }, { "Femaref", 6 }, { "Flash", 6 }, { "Galideeth", 6 }, { "gareth", 6 }, { "gavinl", 6 }, { "GoneWacko", 6 }, { "Good speed", 6 }, { "happyslinky", 6 }, { "Innocent Enemy", 6 }, { "Jazzy_Josh", 6 }, { "jdread", 6 }, { "Jeff Zellner", 6 }, { "jthiesen", 6 }, { "justinian", 6 }, { "Kelos Pelmand", 6 }, { "Kingdud", 6 }, { "Kw4h", 6 }, { "Kunnis Niam", 6 }, { "lerthe61", 6 }, { "Lexiica", 6 }, { "Master of Dice", 6 }, { "Maximilian Kernbach", 6 }, { "MaZ", 6 }, { "mexx24", 6 }, { "Michayel Lyon", 6 }, { "mintoko", 6 }, { "misterilla", 6 }, { "Moq", 6 }, { "morgangreenacre", 6 }, { "Namistai", 6 }, { "Nascent Nimbus", 6 }, { "NetMage", 6 }, { "Nagapito", 6 }, { "Nilyen", 6 }, { "Nimrel", 6 }, { "Niom", 6 }, { "Pharazon", 6 }, { "Phoenix Flames", 6 }, { "phorge", 6 }, { "Protag", 6 }, { "Optica", 6 }, { "Quantix Blackstar", 6 }, { "Risako", 6 }, { "Ruldar", 6 }, { "Safarian Lanar", 6 }, { "scoobyrich", 6 }, { "Sertan Deras", 6 }, { "shaver", 6 }, { "Shocky", 6 }, { "Shwehan Juanis", 6 }, { "skolima", 6 }, { "Spiff Nutter", 6 }, { "stiez", 6 }, { "Subkahnshus", 6 }, { "SyndicateAexeron", 6 }, { "The_Assimilator", 6 }, { "TheConstructor", 6 }, { "Travis Puderbaugh", 6 }, { "Trin", 6 }, { "vardoj", 6 }, { "Waste Land", 6 }, { "wrok", 6 }, { "xNomeda", 6 }, { "ykoehler", 6 }, { "Zarra Kri", 6 }, { "Zofu", 6 } }; }
/// <summary> /// Setup the list of developers and the standard font /// </summary> public AboutWindow() { InitializeComponent(); devsList.SelectedIndexChanged += new EventHandler(devsList_SelectedIndexChanged); myFont = FontFactory.GetDefaultFont(8.25f); myFontbold = FontFactory.GetDefaultFont(8.25f, FontStyle.Bold); this.EVEMonLabel.Font = FontFactory.GetDefaultFont(8.25F, FontStyle.Bold); this.DevContribLabel.Font = FontFactory.GetDefaultFont(8.25F, FontStyle.Bold); this.CredentialsLabels.Font = FontFactory.GetDefaultFont(8.25F, FontStyle.Bold); // list of headings slPriority = new SortedList(); slPriority.Add("01", "Guru"); slPriority.Add("02", "Guru (Retired)"); slPriority.Add("03", "Developers"); slPriority.Add("04", "Developers (Retired)"); slPriority.Add("05", "Contributors"); // list of developers by heading slDevelopers = new SortedList(); // EVEMon Guru slDevelopers.Add("Richard Slater", "01"); // Guru (Retired) slDevelopers.Add("Araan Sunn", "02"); slDevelopers.Add("Six Anari", "02"); slDevelopers.Add("Anders Chydenius", "02"); slDevelopers.Add("Brad Stone", "02"); slDevelopers.Add("Eewec Ourbyni", "02"); // Developers slDevelopers.Add("MrCue", "03"); slDevelopers.Add("DonQuiche", "03"); slDevelopers.Add("Jimi", "03"); // Developers (Retired) slDevelopers.Add("Collin Grady", "04"); slDevelopers.Add("DCShadow", "04"); slDevelopers.Add("Grauw", "04"); slDevelopers.Add("Jalon Mevek", "04"); slDevelopers.Add("Labogh", "04"); slDevelopers.Add("romanl", "04"); slDevelopers.Add("Safrax", "04"); slDevelopers.Add("Stevil Knevil", "04"); slDevelopers.Add("TheBelgarion", "04"); // Contributors slDevelopers.Add("Abomb", "05"); slDevelopers.Add("Adam Butt", "05"); slDevelopers.Add("Aevum Decessus", "05"); slDevelopers.Add("aMUSiC", "05"); slDevelopers.Add("Arengor", "05"); slDevelopers.Add("ATGardner", "05"); slDevelopers.Add("Barend", "05"); slDevelopers.Add("bugusnot", "05"); slDevelopers.Add("Candle", "05"); slDevelopers.Add("coeus", "05"); slDevelopers.Add("CrazyMahone", "05"); slDevelopers.Add("cybertech", "05"); slDevelopers.Add("Dariana", "05"); slDevelopers.Add("Eviro", "05"); slDevelopers.Add("exi", "05"); slDevelopers.Add("FangVV", "05"); slDevelopers.Add("Femaref", "05"); slDevelopers.Add("Flash", "05"); slDevelopers.Add("Galideeth", "05"); slDevelopers.Add("gareth", "05"); slDevelopers.Add("gavinl", "05"); slDevelopers.Add("GoneWacko", "05"); slDevelopers.Add("happyslinky", "05"); slDevelopers.Add("jdread", "05"); slDevelopers.Add("Jeff Zellner", "05"); slDevelopers.Add("jthiesen", "05"); slDevelopers.Add("justinian", "05"); slDevelopers.Add("Kw4h", "05"); slDevelopers.Add("Lexiica", "05"); slDevelopers.Add("Master of Dice", "05"); slDevelopers.Add("Maximilian Kernbach", "05"); slDevelopers.Add("MaZ", "05"); slDevelopers.Add("Michayel Lyon", "05"); slDevelopers.Add("mintoko", "05"); slDevelopers.Add("misterilla", "05"); slDevelopers.Add("Namistai", "05"); slDevelopers.Add("Moq", "05"); slDevelopers.Add("morgangreenacre", "05"); slDevelopers.Add("Nascent Nimbus", "05"); slDevelopers.Add("NetMage", "05"); slDevelopers.Add("Nagapito", "05"); slDevelopers.Add("Nilyen", "05"); slDevelopers.Add("Nimrel", "05"); slDevelopers.Add("Pharazon", "05"); slDevelopers.Add("Phoenix Flames", "05"); slDevelopers.Add("phorge", "05"); slDevelopers.Add("Risako", "05"); slDevelopers.Add("Ruldar", "05"); slDevelopers.Add("Safarian Lanar", "05"); slDevelopers.Add("scoobyrich", "05"); slDevelopers.Add("Sertan Deras", "05"); slDevelopers.Add("shaver", "05"); slDevelopers.Add("Shocky", "05"); slDevelopers.Add("Shwehan Juanis", "05"); slDevelopers.Add("skolima", "05"); slDevelopers.Add("Spiff Nutter", "05"); slDevelopers.Add("Subkahnshus", "05"); slDevelopers.Add("The_Assimilator", "05"); slDevelopers.Add("TheConstructor", "05"); slDevelopers.Add("Trin", "05"); slDevelopers.Add("vardoj", "05"); slDevelopers.Add("Vehlin", "05"); slDevelopers.Add("Waste Land", "05"); slDevelopers.Add("wrok", "05"); slDevelopers.Add("xNomeda", "05"); slDevelopers.Add("Zarra Kri", "05"); slDevelopers.Add("Zofu", "05"); slOutput = new SortedList(); }
protected void SetupDefaultResources() { smallFont = FontFactory.GetDefaultFont(7.0f); }
private void PaintMonthCalendar(PaintEventArgs e) { Graphics g = e.Graphics; CalculateCellMetrics(); DateTime mdt = new DateTime(m_date.Year, m_date.Month, 1); string ymDesc = mdt.ToString("y"); DayOfWeek firstDayDow = mdt.DayOfWeek; DayOfWeek cDow = m_firstDayOfWeek; using (Font boldf = FontFactory.GetDefaultFont(FontStyle.Bold)) { Rectangle headerRect = new Rectangle(m_calTopLeft.X, m_calTopLeft.Y, m_cellSize.Width * 7, HEADER_HEIGHT); using (Brush hb = new SolidBrush(Color.FromArgb(47, 77, 132))) { g.FillRectangle(hb, headerRect); } g.DrawRectangle(Pens.Black, headerRect); TextRenderer.DrawText(g, ymDesc, boldf, new Rectangle(headerRect.Left + 1, headerRect.Top + 1, headerRect.Width - 2, headerRect.Height - 2), Color.White, Color.Transparent, TextFormatFlags.EndEllipsis | TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter); using (Brush db = new SolidBrush(Color.FromArgb(106, 149, 228))) { for (int x = 0; x < 7; x++) { Rectangle cellRect = new Rectangle(m_calTopLeft.X + (m_cellSize.Width * x), m_calTopLeft.Y + HEADER_HEIGHT, m_cellSize.Width, DAY_HEADER_HEIGHT); g.FillRectangle(db, cellRect); g.DrawRectangle(Pens.Black, cellRect); string dayName = CultureInfo.CurrentCulture.DateTimeFormat.DayNames[(int)cDow]; TextRenderer.DrawText(g, dayName, boldf, new Rectangle(cellRect.Left + 1, cellRect.Top + 1, cellRect.Width - 2, cellRect.Height - 2), Color.Black, Color.Transparent, TextFormatFlags.EndEllipsis | TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter); cDow = (DayOfWeek)(((int)cDow + 1) % 7); } } } bool daysRunning = false; using (Brush validDayBrush = new LinearGradientBrush( new Rectangle(m_calTopLeft.X, m_calTopLeft.Y + HEADER_HEIGHT + DAY_HEADER_HEIGHT, m_cellSize.Width * 7, m_cellSize.Height * MAX_ROWS), Color.FromArgb(244, 244, 244), Color.FromArgb(203, 220, 228), LinearGradientMode.Vertical)) { for (int y = 0; y < MAX_ROWS; y++) { cDow = m_firstDayOfWeek; using (Brush invalidDayBrush = new LinearGradientBrush( new Rectangle(m_calTopLeft.X, m_calTopLeft.Y + HEADER_HEIGHT + DAY_HEADER_HEIGHT + (y * m_cellSize.Height), m_cellSize.Width * 7, m_cellSize.Height), Color.FromArgb(169, 169, 169), Color.FromArgb(140, 140, 140), LinearGradientMode.Vertical)) { for (int x = 0; x < 7; x++) { bool isValidDay = false; int dayNum = 0; if (!daysRunning) { if (cDow == firstDayDow) { daysRunning = true; } } if (daysRunning) { if (mdt.Month == m_date.Month) { isValidDay = true; dayNum = mdt.Day; mdt = mdt + TimeSpan.FromDays(1); } } Rectangle cellRect = new Rectangle(m_calTopLeft.X + (m_cellSize.Width * x), m_calTopLeft.Y + HEADER_HEIGHT + DAY_HEADER_HEIGHT + (m_cellSize.Height * y), m_cellSize.Width, m_cellSize.Height); if (isValidDay) { g.FillRectangle(validDayBrush, cellRect); } else { g.FillRectangle(invalidDayBrush, cellRect); } g.DrawRectangle(Pens.Black, cellRect); if (isValidDay) { TextRenderer.DrawText(g, dayNum.ToString(), this.Font, new Point(cellRect.Left + 2, cellRect.Top + 2), Color.Black, Color.Transparent, TextFormatFlags.NoPadding | TextFormatFlags.NoClipping); DateTime datetime = new DateTime(m_date.Year, m_date.Month, dayNum); PaintMonthEntriesForDay(g, datetime, cellRect); } cDow = (DayOfWeek)(((int)cDow + 1) % 7); } } } } }