クラス NicoLiveAlert.Form1
アラートのメインフォーム
[詳細]
すべてのメンバ一覧
説明
アラートのメインフォーム
Form1.cs の 17 行で定義されています。
コンストラクタとデストラクタ
| NicoLiveAlert.Form1.Form1 |
( |
|
) |
|
デフォルトコンストラクタ
Form1.cs の 42 行で定義されています。
00042 {
00043 Control.CheckForIllegalCrossThreadCalls = false;
00044 InitializeComponent();
00045 }
メソッド
| void NicoLiveAlert.Form1.RestoreLocation |
( |
|
) |
|
設定ファイルからフォームの位置を読み込み、復元する. 読み込みに失敗した場合は何も行わない.
Form1.cs の 51 行で定義されています。
00051 {
00052 try {
00053 string strx = Configure["window"]["location"]["x"],
00054 stry = Configure["window"]["location"]["y"];
00055 int x = Convert.ToInt32(strx, 10),
00056 y = Convert.ToInt32(stry, 10);
00057
00058 Location = new Point(x, y);
00059 } catch {
00060
00061
00062
00063
00064 }
00065 }
| void NicoLiveAlert.Form1.RestoreSize |
( |
|
) |
|
設定ファイルからフォームのサイズを読み込み、復元する. 読み込みに失敗した場合は何も行わない.
Form1.cs の 89 行で定義されています。
00089 {
00090 try {
00091 string strw = Configure["window"]["size"]["width"],
00092 strh = Configure["window"]["size"]["height"];
00093 int width = Convert.ToInt32(strw, 10),
00094 height = Convert.ToInt32(strh, 10);
00095
00096 Size = new Size(width, height);
00097 } catch {
00098
00099
00100
00101
00102 }
00103 }
| void NicoLiveAlert.Form1.RestoreWindowState |
( |
|
) |
|
Form1.cs の 126 行で定義されています。
00126 {
00127 try {
00128 FormWindowState laststate;
00129 switch(Configure["window"]["state"]){
00130 case "Normal":
00131 laststate = FormWindowState.Normal;
00132 break;
00133 case "Maximized":
00134 laststate = FormWindowState.Maximized;
00135 break;
00136 case "Minimized":
00137 laststate = FormWindowState.Minimized;
00138 break;
00139 default:
00140 laststate = FormWindowState.Normal;
00141 break;
00142 }
00143 WindowState = laststate;
00144 } catch {
00145
00146 }
00147 }
| void NicoLiveAlert.Form1.SaveLocation |
( |
|
) |
|
現在のフォームの位置を記録する.
Form1.cs の 70 行で定義されています。
00070 {
00071 if (WindowState == FormWindowState.Normal) {
00072
00073 Configure["window"]["location"]["x"].Value = Location.X.ToString();
00074 Configure["window"]["location"]["y"].Value = Location.Y.ToString();
00075 } else {
00076
00077 FormWindowState state = WindowState;
00078 WindowState = FormWindowState.Normal;
00079 Configure["window"]["location"]["x"].Value = Location.X.ToString();
00080 Configure["window"]["location"]["y"].Value = Location.Y.ToString();
00081 WindowState = state;
00082 }
00083 }
| void NicoLiveAlert.Form1.SaveSize |
( |
|
) |
|
現在のフォームのサイズを記録する
Form1.cs の 108 行で定義されています。
00108 {
00109 if (WindowState == FormWindowState.Normal) {
00110
00111 Configure["window"]["size"]["width"].Value = Size.Width.ToString();
00112 Configure["window"]["size"]["height"].Value = Size.Height.ToString();
00113 } else {
00114
00115 FormWindowState state = WindowState;
00116 WindowState = FormWindowState.Normal;
00117 Configure["window"]["size"]["width"].Value = Size.Width.ToString();
00118 Configure["window"]["size"]["height"].Value = Size.Height.ToString();
00119 WindowState = state;
00120 }
00121 }
| void NicoLiveAlert.Form1.SaveWindowState |
( |
|
) |
|
現在のフォームの状態(通常・最大化・最小化)を記録する
Form1.cs の 152 行で定義されています。
00152 {
00153 Configure["window"]["state"].Value = WindowState.ToString();
00154 }
このクラスの説明は次のファイルから生成されました: