\83¡ã\83\83ã\82»ã\83¼ã\82¸.cs - RSS feed" href="/view?p=strokestylet/CsWin10Desktop3.git;a=rss;f=SSTFEditor/Popup%C3%A3%C2%83%C2%A1%C3%A3%C2%83%C2%83%C3%A3%C2%82%C2%BB%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8.cs" type="application/rss+xml" /> \83¡ã\83\83ã\82»ã\83¼ã\82¸.cs - RSS feed (no merges)" href="/view?p=strokestylet/CsWin10Desktop3.git;a=rss;f=SSTFEditor/Popup%C3%A3%C2%83%C2%A1%C3%A3%C2%83%C2%83%C3%A3%C2%82%C2%BB%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8.cs;opt=--no-merges" type="application/rss+xml" /> \83¡ã\83\83ã\82»ã\83¼ã\82¸.cs - Atom feed" href="/view?p=strokestylet/CsWin10Desktop3.git;a=atom;f=SSTFEditor/Popup%C3%A3%C2%83%C2%A1%C3%A3%C2%83%C2%83%C3%A3%C2%82%C2%BB%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8.cs" type="application/atom+xml" /> \83¡ã\83\83ã\82»ã\83¼ã\82¸.cs - Atom feed (no merges)" href="/view?p=strokestylet/CsWin10Desktop3.git;a=atom;f=SSTFEditor/Popup%C3%A3%C2%83%C2%A1%C3%A3%C2%83%C2%83%C3%A3%C2%82%C2%BB%C3%A3%C2%83%C2%BC%C3%A3%C2%82%C2%B8.cs;opt=--no-merges" type="application/atom+xml" />

OSDN Git Service

Merge branch 'develop'
[strokestylet/CsWin10Desktop3.git] / SSTFEditor / Popupã\83¡ã\83\83ã\82»ã\83¼ã\82¸.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Text;
7 using System.Windows.Forms;
8
9 namespace SSTFEditor
10 {
11         public partial class Popupメッセージ : Form
12         {
13                 public Popupメッセージ( string strメッセージ )
14                 {
15                         InitializeComponent();
16
17                         this.メッセージ = strメッセージ;
18                         this.フォント = new Font( "MS PGothic", 10f );
19                 }
20
21                 protected string メッセージ;
22                 protected Font フォント;
23
24                 protected void Popupメッセージ_FormClosing( object sender, FormClosingEventArgs e )
25                 {
26                         FDK.Utilities.解放する( ref this.フォント );
27                 }
28                 protected void Popupメッセージ_Load( object sender, EventArgs e )
29                 {
30                         base.Location = new Point(
31                                 base.Owner.Location.X + ( ( base.Owner.Width - base.Width ) / 2 ),
32                                 base.Owner.Location.Y + ( ( base.Owner.Height - base.Height ) / 2 ) );
33                 }
34
35                 protected void panelメッセージ本文_Paint( object sender, PaintEventArgs e )
36                 {
37                         using( var brush = new SolidBrush( Color.Black ) )
38                         {
39                                 e.Graphics.DrawString(
40                                         this.メッセージ,
41                                         this.フォント,
42                                         brush,
43                                         new RectangleF( 0f, 0f, (float) this.panelメッセージ本文.ClientSize.Width, (float) this.panelメッセージ本文.ClientSize.Height ),
44                                         new StringFormat() {
45                                                 LineAlignment = StringAlignment.Center,
46                                                 Alignment = StringAlignment.Near,
47                                         } );
48                         }
49                 }
50         }
51 }