Notifying a message in Action center.
修订版 | bcb634c5f51556cc024f0b79a8bc62759bd87e00 (tree) |
---|---|
时间 | 2021-05-02 12:08:26 |
作者 | ![]() |
Commiter | JeffyTS |
test20211
@@ -1,7 +1,10 @@ | ||
1 | 1 | ## Ignore Visual Studio temporary files, build results, and |
2 | 2 | ## files generated by popular Visual Studio add-ons. |
3 | +## | |
4 | +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | |
3 | 5 | |
4 | 6 | # User-specific files |
7 | +*.rsuser | |
5 | 8 | *.suo |
6 | 9 | *.user |
7 | 10 | *.userosscache |
@@ -10,6 +13,9 @@ | ||
10 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) |
11 | 14 | *.userprefs |
12 | 15 | |
16 | +# Mono auto generated files | |
17 | +mono_crash.* | |
18 | + | |
13 | 19 | # Build results |
14 | 20 | [Dd]ebug/ |
15 | 21 | [Dd]ebugPublic/ |
@@ -17,39 +23,63 @@ | ||
17 | 23 | [Rr]eleases/ |
18 | 24 | x64/ |
19 | 25 | x86/ |
20 | -build/ | |
26 | +[Ww][Ii][Nn]32/ | |
27 | +[Aa][Rr][Mm]/ | |
28 | +[Aa][Rr][Mm]64/ | |
21 | 29 | bld/ |
22 | 30 | [Bb]in/ |
23 | 31 | [Oo]bj/ |
32 | +[Oo]ut/ | |
33 | +[Ll]og/ | |
34 | +[Ll]ogs/ | |
24 | 35 | |
25 | -# Visual Studio 2015 cache/options directory | |
36 | +# Visual Studio 2015/2017 cache/options directory | |
26 | 37 | .vs/ |
38 | +# Uncomment if you have tasks that create the project's static files in wwwroot | |
39 | +#wwwroot/ | |
40 | + | |
41 | +# Visual Studio 2017 auto generated files | |
42 | +Generated\ Files/ | |
27 | 43 | |
28 | 44 | # MSTest test Results |
29 | 45 | [Tt]est[Rr]esult*/ |
30 | 46 | [Bb]uild[Ll]og.* |
31 | 47 | |
32 | -# NUNIT | |
48 | +# NUnit | |
33 | 49 | *.VisualState.xml |
34 | 50 | TestResult.xml |
51 | +nunit-*.xml | |
35 | 52 | |
36 | 53 | # Build Results of an ATL Project |
37 | 54 | [Dd]ebugPS/ |
38 | 55 | [Rr]eleasePS/ |
39 | 56 | dlldata.c |
40 | 57 | |
41 | -# DNX | |
58 | +# Benchmark Results | |
59 | +BenchmarkDotNet.Artifacts/ | |
60 | + | |
61 | +# .NET Core | |
42 | 62 | project.lock.json |
63 | +project.fragment.lock.json | |
43 | 64 | artifacts/ |
44 | 65 | |
66 | +# ASP.NET Scaffolding | |
67 | +ScaffoldingReadMe.txt | |
68 | + | |
69 | +# StyleCop | |
70 | +StyleCopReport.xml | |
71 | + | |
72 | +# Files built by Visual Studio | |
45 | 73 | *_i.c |
46 | 74 | *_p.c |
47 | -*_i.h | |
75 | +*_h.h | |
48 | 76 | *.ilk |
49 | 77 | *.meta |
50 | 78 | *.obj |
79 | +*.iobj | |
51 | 80 | *.pch |
52 | 81 | *.pdb |
82 | +*.ipdb | |
53 | 83 | *.pgc |
54 | 84 | *.pgd |
55 | 85 | *.rsp |
@@ -59,6 +89,7 @@ artifacts/ | ||
59 | 89 | *.tlh |
60 | 90 | *.tmp |
61 | 91 | *.tmp_proj |
92 | +*_wpftmp.csproj | |
62 | 93 | *.log |
63 | 94 | *.vspscc |
64 | 95 | *.vssscc |
@@ -74,14 +105,21 @@ _Chutzpah* | ||
74 | 105 | ipch/ |
75 | 106 | *.aps |
76 | 107 | *.ncb |
108 | +*.opendb | |
77 | 109 | *.opensdf |
78 | 110 | *.sdf |
79 | 111 | *.cachefile |
112 | +*.VC.db | |
113 | +*.VC.VC.opendb | |
80 | 114 | |
81 | 115 | # Visual Studio profiler |
82 | 116 | *.psess |
83 | 117 | *.vsp |
84 | 118 | *.vspx |
119 | +*.sap | |
120 | + | |
121 | +# Visual Studio Trace Files | |
122 | +*.e2e | |
85 | 123 | |
86 | 124 | # TFS 2012 Local Workspace |
87 | 125 | $tf/ |
@@ -94,18 +132,29 @@ _ReSharper*/ | ||
94 | 132 | *.[Rr]e[Ss]harper |
95 | 133 | *.DotSettings.user |
96 | 134 | |
97 | -# JustCode is a .NET coding add-in | |
98 | -.JustCode | |
99 | - | |
100 | 135 | # TeamCity is a build add-in |
101 | 136 | _TeamCity* |
102 | 137 | |
103 | 138 | # DotCover is a Code Coverage Tool |
104 | 139 | *.dotCover |
105 | 140 | |
141 | +# AxoCover is a Code Coverage Tool | |
142 | +.axoCover/* | |
143 | +!.axoCover/settings.json | |
144 | + | |
145 | +# Coverlet is a free, cross platform Code Coverage Tool | |
146 | +coverage*.json | |
147 | +coverage*.xml | |
148 | +coverage*.info | |
149 | + | |
150 | +# Visual Studio code coverage results | |
151 | +*.coverage | |
152 | +*.coveragexml | |
153 | + | |
106 | 154 | # NCrunch |
107 | 155 | _NCrunch_* |
108 | 156 | .*crunch*.local.xml |
157 | +nCrunchTemp_* | |
109 | 158 | |
110 | 159 | # MightyMoose |
111 | 160 | *.mm.* |
@@ -133,47 +182,72 @@ publish/ | ||
133 | 182 | # Publish Web Output |
134 | 183 | *.[Pp]ublish.xml |
135 | 184 | *.azurePubxml |
136 | -## TODO: Comment the next line if you want to checkin your | |
137 | -## web deploy settings but do note that will include unencrypted | |
138 | -## passwords | |
139 | -#*.pubxml | |
140 | - | |
185 | +# Note: Comment the next line if you want to checkin your web deploy settings, | |
186 | +# but database connection strings (with potential passwords) will be unencrypted | |
187 | +*.pubxml | |
141 | 188 | *.publishproj |
142 | 189 | |
190 | +# Microsoft Azure Web App publish settings. Comment the next line if you want to | |
191 | +# checkin your Azure Web App publish settings, but sensitive information contained | |
192 | +# in these scripts will be unencrypted | |
193 | +PublishScripts/ | |
194 | + | |
143 | 195 | # NuGet Packages |
144 | 196 | *.nupkg |
197 | +# NuGet Symbol Packages | |
198 | +*.snupkg | |
145 | 199 | # The packages folder can be ignored because of Package Restore |
146 | -**/packages/* | |
200 | +**/[Pp]ackages/* | |
147 | 201 | # except build/, which is used as an MSBuild target. |
148 | -!**/packages/build/ | |
202 | +!**/[Pp]ackages/build/ | |
149 | 203 | # Uncomment if necessary however generally it will be regenerated when needed |
150 | -#!**/packages/repositories.config | |
204 | +#!**/[Pp]ackages/repositories.config | |
205 | +# NuGet v3's project.json files produces more ignorable files | |
206 | +*.nuget.props | |
207 | +*.nuget.targets | |
151 | 208 | |
152 | -# Windows Azure Build Output | |
209 | +# Microsoft Azure Build Output | |
153 | 210 | csx/ |
154 | 211 | *.build.csdef |
155 | 212 | |
156 | -# Windows Store app package directory | |
213 | +# Microsoft Azure Emulator | |
214 | +ecf/ | |
215 | +rcf/ | |
216 | + | |
217 | +# Windows Store app package directories and files | |
157 | 218 | AppPackages/ |
219 | +BundleArtifacts/ | |
220 | +Package.StoreAssociation.xml | |
221 | +_pkginfo.txt | |
222 | +*.appx | |
223 | +*.appxbundle | |
224 | +*.appxupload | |
158 | 225 | |
159 | 226 | # Visual Studio cache files |
160 | 227 | # files ending in .cache can be ignored |
161 | 228 | *.[Cc]ache |
162 | 229 | # but keep track of directories ending in .cache |
163 | -!*.[Cc]ache/ | |
230 | +!?*.[Cc]ache/ | |
164 | 231 | |
165 | 232 | # Others |
166 | 233 | ClientBin/ |
167 | -[Ss]tyle[Cc]op.* | |
168 | 234 | ~$* |
169 | 235 | *~ |
170 | 236 | *.dbmdl |
171 | 237 | *.dbproj.schemaview |
238 | +*.jfm | |
172 | 239 | *.pfx |
173 | 240 | *.publishsettings |
174 | -node_modules/ | |
175 | 241 | orleans.codegen.cs |
176 | 242 | |
243 | +# Including strong name files can present a security risk | |
244 | +# (https://github.com/github/gitignore/pull/2483#issue-259490424) | |
245 | +#*.snk | |
246 | + | |
247 | +# Since there are multiple workflows, uncomment next line to ignore bower_components | |
248 | +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) | |
249 | +#bower_components/ | |
250 | + | |
177 | 251 | # RIA/Silverlight projects |
178 | 252 | Generated_Code/ |
179 | 253 |
@@ -184,21 +258,32 @@ _UpgradeReport_Files/ | ||
184 | 258 | Backup*/ |
185 | 259 | UpgradeLog*.XML |
186 | 260 | UpgradeLog*.htm |
261 | +ServiceFabricBackup/ | |
262 | +*.rptproj.bak | |
187 | 263 | |
188 | 264 | # SQL Server files |
189 | 265 | *.mdf |
190 | 266 | *.ldf |
267 | +*.ndf | |
191 | 268 | |
192 | 269 | # Business Intelligence projects |
193 | 270 | *.rdl.data |
194 | 271 | *.bim.layout |
195 | 272 | *.bim_*.settings |
273 | +*.rptproj.rsuser | |
274 | +*- [Bb]ackup.rdl | |
275 | +*- [Bb]ackup ([0-9]).rdl | |
276 | +*- [Bb]ackup ([0-9][0-9]).rdl | |
196 | 277 | |
197 | 278 | # Microsoft Fakes |
198 | 279 | FakesAssemblies/ |
199 | 280 | |
281 | +# GhostDoc plugin setting file | |
282 | +*.GhostDoc.xml | |
283 | + | |
200 | 284 | # Node.js Tools for Visual Studio |
201 | 285 | .ntvs_analysis.dat |
286 | +node_modules/ | |
202 | 287 | |
203 | 288 | # Visual Studio 6 build log |
204 | 289 | *.plg |
@@ -206,7 +291,73 @@ FakesAssemblies/ | ||
206 | 291 | # Visual Studio 6 workspace options file |
207 | 292 | *.opt |
208 | 293 | |
209 | -# LightSwitch generated files | |
210 | -GeneratedArtifacts/ | |
211 | -_Pvt_Extensions/ | |
212 | -ModelManifest.xml | |
294 | +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) | |
295 | +*.vbw | |
296 | + | |
297 | +# Visual Studio LightSwitch build output | |
298 | +**/*.HTMLClient/GeneratedArtifacts | |
299 | +**/*.DesktopClient/GeneratedArtifacts | |
300 | +**/*.DesktopClient/ModelManifest.xml | |
301 | +**/*.Server/GeneratedArtifacts | |
302 | +**/*.Server/ModelManifest.xml | |
303 | +_Pvt_Extensions | |
304 | + | |
305 | +# Paket dependency manager | |
306 | +.paket/paket.exe | |
307 | +paket-files/ | |
308 | + | |
309 | +# FAKE - F# Make | |
310 | +.fake/ | |
311 | + | |
312 | +# CodeRush personal settings | |
313 | +.cr/personal | |
314 | + | |
315 | +# Python Tools for Visual Studio (PTVS) | |
316 | +__pycache__/ | |
317 | +*.pyc | |
318 | + | |
319 | +# Cake - Uncomment if you are using it | |
320 | +# tools/** | |
321 | +# !tools/packages.config | |
322 | + | |
323 | +# Tabs Studio | |
324 | +*.tss | |
325 | + | |
326 | +# Telerik's JustMock configuration file | |
327 | +*.jmconfig | |
328 | + | |
329 | +# BizTalk build output | |
330 | +*.btp.cs | |
331 | +*.btm.cs | |
332 | +*.odx.cs | |
333 | +*.xsd.cs | |
334 | + | |
335 | +# OpenCover UI analysis results | |
336 | +OpenCover/ | |
337 | + | |
338 | +# Azure Stream Analytics local run output | |
339 | +ASALocalRun/ | |
340 | + | |
341 | +# MSBuild Binary and Structured Log | |
342 | +*.binlog | |
343 | + | |
344 | +# NVidia Nsight GPU debugger configuration file | |
345 | +*.nvuser | |
346 | + | |
347 | +# MFractors (Xamarin productivity tool) working folder | |
348 | +.mfractor/ | |
349 | + | |
350 | +# Local History for Visual Studio | |
351 | +.localhistory/ | |
352 | + | |
353 | +# BeatPulse healthcheck temp database | |
354 | +healthchecksdb | |
355 | + | |
356 | +# Backup folder for Package Reference Convert tool in Visual Studio 2017 | |
357 | +MigrationBackup/ | |
358 | + | |
359 | +# Ionide (cross platform F# VS Code tools) working folder | |
360 | +.ionide/ | |
361 | + | |
362 | +# Fody - auto-generated XML schema | |
363 | +FodyWeavers.xsd | |
\ No newline at end of file |
@@ -0,0 +1,29 @@ | ||
1 | + | |
2 | +Microsoft Visual Studio Solution File, Format Version 12.00 | |
3 | +# Visual Studio 14 | |
4 | +VisualStudioVersion = 14.0.23107.0 | |
5 | +MinimumVisualStudioVersion = 10.0.40219.1 | |
6 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotifyMessage", "NotifyMessage\NotifyMessage.csproj", "{1BF662DF-003B-43F9-9E1F-C5FA0CF8092F}" | |
7 | +EndProject | |
8 | +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{41622DD9-5228-4CF2-867B-4BDF158BCFF4}" | |
9 | + ProjectSection(SolutionItems) = preProject | |
10 | + NotifyMessage\NotifyMessage.ico = NotifyMessage\NotifyMessage.ico | |
11 | + NotifyMessage\NotifyMessageTray.ico = NotifyMessage\NotifyMessageTray.ico | |
12 | + readme.txt = readme.txt | |
13 | + EndProjectSection | |
14 | +EndProject | |
15 | +Global | |
16 | + GlobalSection(SolutionConfigurationPlatforms) = preSolution | |
17 | + Debug|Any CPU = Debug|Any CPU | |
18 | + Release|Any CPU = Release|Any CPU | |
19 | + EndGlobalSection | |
20 | + GlobalSection(ProjectConfigurationPlatforms) = postSolution | |
21 | + {1BF662DF-003B-43F9-9E1F-C5FA0CF8092F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |
22 | + {1BF662DF-003B-43F9-9E1F-C5FA0CF8092F}.Debug|Any CPU.Build.0 = Debug|Any CPU | |
23 | + {1BF662DF-003B-43F9-9E1F-C5FA0CF8092F}.Release|Any CPU.ActiveCfg = Release|Any CPU | |
24 | + {1BF662DF-003B-43F9-9E1F-C5FA0CF8092F}.Release|Any CPU.Build.0 = Release|Any CPU | |
25 | + EndGlobalSection | |
26 | + GlobalSection(SolutionProperties) = preSolution | |
27 | + HideSolutionNode = FALSE | |
28 | + EndGlobalSection | |
29 | +EndGlobal |
@@ -0,0 +1,6 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<configuration> | |
3 | + <startup> | |
4 | + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/> | |
5 | + </startup> | |
6 | +</configuration> |
@@ -0,0 +1,58 @@ | ||
1 | +namespace NotifyMessage | |
2 | +{ | |
3 | + partial class MainForm | |
4 | + { | |
5 | + /// <summary> | |
6 | + /// 必要なデザイナー変数です。 | |
7 | + /// </summary> | |
8 | + private System.ComponentModel.IContainer components = null; | |
9 | + | |
10 | + /// <summary> | |
11 | + /// 使用中のリソースをすべてクリーンアップします。 | |
12 | + /// </summary> | |
13 | + /// <param name="disposing">マネージ リソースを破棄する場合は true を指定し、その他の場合は false を指定します。</param> | |
14 | + protected override void Dispose(bool disposing) | |
15 | + { | |
16 | + if (disposing && (components != null)) | |
17 | + { | |
18 | + components.Dispose(); | |
19 | + } | |
20 | + base.Dispose(disposing); | |
21 | + } | |
22 | + | |
23 | + #region Windows フォーム デザイナーで生成されたコード | |
24 | + | |
25 | + /// <summary> | |
26 | + /// デザイナー サポートに必要なメソッドです。このメソッドの内容を | |
27 | + /// コード エディターで変更しないでください。 | |
28 | + /// </summary> | |
29 | + private void InitializeComponent() | |
30 | + { | |
31 | + this.components = new System.ComponentModel.Container(); | |
32 | + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); | |
33 | + this.notifyIcon_MainForm = new System.Windows.Forms.NotifyIcon(this.components); | |
34 | + this.SuspendLayout(); | |
35 | + // | |
36 | + // notifyIcon_MainForm | |
37 | + // | |
38 | + this.notifyIcon_MainForm.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon_MainForm.Icon"))); | |
39 | + this.notifyIcon_MainForm.Text = "NotifyMessage"; | |
40 | + this.notifyIcon_MainForm.Visible = true; | |
41 | + // | |
42 | + // MainForm | |
43 | + // | |
44 | + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | |
45 | + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
46 | + this.ClientSize = new System.Drawing.Size(284, 261); | |
47 | + this.Name = "MainForm"; | |
48 | + this.Text = "NotifyMessage"; | |
49 | + this.ResumeLayout(false); | |
50 | + | |
51 | + } | |
52 | + | |
53 | + #endregion | |
54 | + | |
55 | + private System.Windows.Forms.NotifyIcon notifyIcon_MainForm; | |
56 | + } | |
57 | +} | |
58 | + |
@@ -0,0 +1,117 @@ | ||
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.ComponentModel; | |
4 | +using System.Data; | |
5 | +using System.Drawing; | |
6 | +using System.Linq; | |
7 | +using System.Text; | |
8 | +using System.Threading.Tasks; | |
9 | +using System.Windows.Forms; | |
10 | +using System.Reflection; // Add | |
11 | + | |
12 | + | |
13 | + | |
14 | +namespace NotifyMessage | |
15 | +{ | |
16 | + public partial class MainForm : Form | |
17 | + { | |
18 | + // This Program Name | |
19 | + private const string PROGRAM_NAME = "NotifyMessage"; | |
20 | + // Messages | |
21 | + private const string MSG_USAGE = "Notifiying a message in Action center.\r\n" + | |
22 | + "\r\n" + | |
23 | + " Usage: \r\n" + | |
24 | + " " + PROGRAM_NAME + ".exe [opt] \"Your message\"\r\n" + | |
25 | + "\r\n" + | |
26 | + " Option:\r\n" + | |
27 | + " /INFO(default) | /WARN | /ERR"; | |
28 | + private const string MSG_ABOUT = "Thanks to Microsoft Corporation.\r\n" + | |
29 | + "\r\n" + | |
30 | + "This program has been developed on\r\n" + | |
31 | + " Visual Studio Community 2015\r\n" + | |
32 | + " Windows10 Professional 64bit.\r\n" + | |
33 | + "\r\n" + | |
34 | + MSG_USAGE; | |
35 | + | |
36 | + public MainForm() | |
37 | + { | |
38 | + // Messageはここで出さないと終了処理がうまくいかない(プロセスが残る) | |
39 | + if (Program.Message == "") | |
40 | + { | |
41 | + //MessageBox.Show(MSG_USAGE, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); | |
42 | + AboutDialog(); | |
43 | + Program.Message = ""; // 消してしまう(flag代わり) | |
44 | + } | |
45 | + else if (Program.Message != "") // vmxFilePathが指定されていないときは初期化せず終了 | |
46 | + { | |
47 | + InitializeComponent(); | |
48 | + | |
49 | + this.notifyIcon_MainForm.Text = PROGRAM_NAME; // Program.NotifyMessage; | |
50 | + this.notifyIcon_MainForm.BalloonTipText = Program.Message; | |
51 | + this.notifyIcon_MainForm.Icon = Properties.Resources.NotifyMessageTray; | |
52 | + | |
53 | + switch (Program.msglevel) | |
54 | + { | |
55 | + case Program.MSGLEVEL.INFO: | |
56 | + this.notifyIcon_MainForm.BalloonTipIcon = ToolTipIcon.Info; | |
57 | + break; | |
58 | + case Program.MSGLEVEL.WARN: | |
59 | + this.notifyIcon_MainForm.BalloonTipIcon = ToolTipIcon.Warning; | |
60 | + break; | |
61 | + case Program.MSGLEVEL.ERR: | |
62 | + this.notifyIcon_MainForm.BalloonTipIcon = ToolTipIcon.Error; | |
63 | + break; | |
64 | + default: | |
65 | + this.notifyIcon_MainForm.BalloonTipIcon = ToolTipIcon.None; | |
66 | + break; | |
67 | + } | |
68 | + | |
69 | + this.notifyIcon_MainForm.ShowBalloonTip(5000); // Balloon tip 表示 | |
70 | + | |
71 | + System.Threading.Thread.Sleep(5000); | |
72 | + | |
73 | + // Exit | |
74 | + this.notifyIcon_MainForm.Visible = false; // タスクトレイからアイコンを取り除く | |
75 | + Application.Exit(); // アプリケーション終了 | |
76 | + } | |
77 | + } | |
78 | + | |
79 | + private void AboutDialog() | |
80 | + { | |
81 | + string message; | |
82 | + | |
83 | + //AssemblyTitleの取得 | |
84 | + AssemblyTitleAttribute asmTitle = (AssemblyTitleAttribute)Attribute.GetCustomAttribute( | |
85 | + Assembly.GetExecutingAssembly(), typeof(AssemblyTitleAttribute)); | |
86 | + //AssemblyDescriptionの取得 | |
87 | + AssemblyDescriptionAttribute asmDesc = (AssemblyDescriptionAttribute)Attribute.GetCustomAttribute( | |
88 | + Assembly.GetExecutingAssembly(), typeof(AssemblyDescriptionAttribute)); | |
89 | + //AssemblyCompanyの取得 | |
90 | + AssemblyCompanyAttribute asmCompany = (AssemblyCompanyAttribute)Attribute.GetCustomAttribute( | |
91 | + Assembly.GetExecutingAssembly(), typeof(AssemblyCompanyAttribute)); | |
92 | + //AssemblyProductの取得 | |
93 | + AssemblyProductAttribute asmPrdct = (AssemblyProductAttribute)Attribute.GetCustomAttribute( | |
94 | + Assembly.GetExecutingAssembly(), typeof(AssemblyProductAttribute)); | |
95 | + //AssemblyCopyrightの取得 | |
96 | + AssemblyCopyrightAttribute asmCpyrght = (AssemblyCopyrightAttribute)Attribute.GetCustomAttribute( | |
97 | + Assembly.GetExecutingAssembly(), typeof(AssemblyCopyrightAttribute)); | |
98 | + //AssemblyTrademarkの取得 | |
99 | + AssemblyTrademarkAttribute asmTM = (AssemblyTrademarkAttribute)Attribute.GetCustomAttribute( | |
100 | + Assembly.GetExecutingAssembly(), typeof(AssemblyTrademarkAttribute)); | |
101 | + //バージョンの取得 | |
102 | + Assembly asm = Assembly.GetExecutingAssembly(); | |
103 | + Version ver = asm.GetName().Version; | |
104 | + | |
105 | + message = asmTitle.Title + "\r\n" + | |
106 | + "\r\n" + | |
107 | + asmDesc.Description + "\r\n" + | |
108 | + "\r\n" + | |
109 | + MSG_ABOUT + "\r\n" + | |
110 | + "\r\n" + | |
111 | + asmCompany.Company + "\r\n" + | |
112 | + asmPrdct.Product + " Rev. " + ver + "\r\n" + | |
113 | + asmCpyrght.Copyright + "\r\n"; | |
114 | + MessageBox.Show(message, PROGRAM_NAME, MessageBoxButtons.OK, MessageBoxIcon.Information); | |
115 | + } | |
116 | + } | |
117 | +} |
@@ -0,0 +1,152 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<root> | |
3 | + <!-- | |
4 | + Microsoft ResX Schema | |
5 | + | |
6 | + Version 2.0 | |
7 | + | |
8 | + The primary goals of this format is to allow a simple XML format | |
9 | + that is mostly human readable. The generation and parsing of the | |
10 | + various data types are done through the TypeConverter classes | |
11 | + associated with the data types. | |
12 | + | |
13 | + Example: | |
14 | + | |
15 | + ... ado.net/XML headers & schema ... | |
16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | |
17 | + <resheader name="version">2.0</resheader> | |
18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | |
24 | + </data> | |
25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
27 | + <comment>This is a comment</comment> | |
28 | + </data> | |
29 | + | |
30 | + There are any number of "resheader" rows that contain simple | |
31 | + name/value pairs. | |
32 | + | |
33 | + Each data row contains a name, and value. The row also contains a | |
34 | + type or mimetype. Type corresponds to a .NET class that support | |
35 | + text/value conversion through the TypeConverter architecture. | |
36 | + Classes that don't support this are serialized and stored with the | |
37 | + mimetype set. | |
38 | + | |
39 | + The mimetype is used for serialized objects, and tells the | |
40 | + ResXResourceReader how to depersist the object. This is currently not | |
41 | + extensible. For a given mimetype the value must be set accordingly: | |
42 | + | |
43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | |
44 | + that the ResXResourceWriter will generate, however the reader can | |
45 | + read any of the formats listed below. | |
46 | + | |
47 | + mimetype: application/x-microsoft.net.object.binary.base64 | |
48 | + value : The object must be serialized with | |
49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
50 | + : and then encoded with base64 encoding. | |
51 | + | |
52 | + mimetype: application/x-microsoft.net.object.soap.base64 | |
53 | + value : The object must be serialized with | |
54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
55 | + : and then encoded with base64 encoding. | |
56 | + | |
57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | |
58 | + value : The object must be serialized into a byte array | |
59 | + : using a System.ComponentModel.TypeConverter | |
60 | + : and then encoded with base64 encoding. | |
61 | + --> | |
62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
64 | + <xsd:element name="root" msdata:IsDataSet="true"> | |
65 | + <xsd:complexType> | |
66 | + <xsd:choice maxOccurs="unbounded"> | |
67 | + <xsd:element name="metadata"> | |
68 | + <xsd:complexType> | |
69 | + <xsd:sequence> | |
70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
71 | + </xsd:sequence> | |
72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | |
73 | + <xsd:attribute name="type" type="xsd:string" /> | |
74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | |
75 | + <xsd:attribute ref="xml:space" /> | |
76 | + </xsd:complexType> | |
77 | + </xsd:element> | |
78 | + <xsd:element name="assembly"> | |
79 | + <xsd:complexType> | |
80 | + <xsd:attribute name="alias" type="xsd:string" /> | |
81 | + <xsd:attribute name="name" type="xsd:string" /> | |
82 | + </xsd:complexType> | |
83 | + </xsd:element> | |
84 | + <xsd:element name="data"> | |
85 | + <xsd:complexType> | |
86 | + <xsd:sequence> | |
87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
89 | + </xsd:sequence> | |
90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
93 | + <xsd:attribute ref="xml:space" /> | |
94 | + </xsd:complexType> | |
95 | + </xsd:element> | |
96 | + <xsd:element name="resheader"> | |
97 | + <xsd:complexType> | |
98 | + <xsd:sequence> | |
99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
100 | + </xsd:sequence> | |
101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | |
102 | + </xsd:complexType> | |
103 | + </xsd:element> | |
104 | + </xsd:choice> | |
105 | + </xsd:complexType> | |
106 | + </xsd:element> | |
107 | + </xsd:schema> | |
108 | + <resheader name="resmimetype"> | |
109 | + <value>text/microsoft-resx</value> | |
110 | + </resheader> | |
111 | + <resheader name="version"> | |
112 | + <value>2.0</value> | |
113 | + </resheader> | |
114 | + <resheader name="reader"> | |
115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
116 | + </resheader> | |
117 | + <resheader name="writer"> | |
118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
119 | + </resheader> | |
120 | + <metadata name="notifyIcon_MainForm.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
121 | + <value>17, 17</value> | |
122 | + </metadata> | |
123 | + <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | |
124 | + <data name="notifyIcon_MainForm.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
125 | + <value> | |
126 | + AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
127 | + AAD0fVEAAAAAAP///wBLS/0Aenp6ALABAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
128 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
129 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
130 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
131 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
132 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
133 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
134 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
135 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
136 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
137 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
138 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
139 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
140 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
141 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
142 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
143 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
144 | + AAAAAAAABQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUAAAAAAAAAAAAABAQEBAQEAAEBAQEB | |
145 | + AQEBAQQEBAQEBAABAwMBAQEBAQEBAQEBAQEAAQMDAQICAgIBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQAA | |
146 | + AAAAAAAAAAABAQEBAQEAAAAAAAAAAAAAAQEBAQEBAAAAAAAAAAAAAAEBAQEBAQAAAAAAAAAAAAABAQEB | |
147 | + AQEAAAAAAAAAAAAAAQEBAQEBAAAAAAAAAAAAAAEBAQEBAQAAAAAAAAAAAAABAgICAgEAAAAAAAAAAAAA | |
148 | + AQEBAQEBAAAAAAAAAAAAAAEBAQEBAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | |
149 | + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= | |
150 | +</value> | |
151 | + </data> | |
152 | +</root> | |
\ No newline at end of file |
@@ -0,0 +1,101 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 | + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
4 | + <PropertyGroup> | |
5 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
6 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
7 | + <ProjectGuid>{1BF662DF-003B-43F9-9E1F-C5FA0CF8092F}</ProjectGuid> | |
8 | + <OutputType>WinExe</OutputType> | |
9 | + <AppDesignerFolder>Properties</AppDesignerFolder> | |
10 | + <RootNamespace>NotifyMessage</RootNamespace> | |
11 | + <AssemblyName>NotifyMessage</AssemblyName> | |
12 | + <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | |
13 | + <FileAlignment>512</FileAlignment> | |
14 | + <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | |
15 | + <TargetFrameworkProfile /> | |
16 | + </PropertyGroup> | |
17 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |
18 | + <PlatformTarget>AnyCPU</PlatformTarget> | |
19 | + <DebugSymbols>true</DebugSymbols> | |
20 | + <DebugType>full</DebugType> | |
21 | + <Optimize>false</Optimize> | |
22 | + <OutputPath>bin\Debug\</OutputPath> | |
23 | + <DefineConstants>DEBUG;TRACE</DefineConstants> | |
24 | + <ErrorReport>prompt</ErrorReport> | |
25 | + <WarningLevel>4</WarningLevel> | |
26 | + </PropertyGroup> | |
27 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |
28 | + <PlatformTarget>AnyCPU</PlatformTarget> | |
29 | + <DebugType>pdbonly</DebugType> | |
30 | + <Optimize>true</Optimize> | |
31 | + <OutputPath>bin\Release\</OutputPath> | |
32 | + <DefineConstants>TRACE</DefineConstants> | |
33 | + <ErrorReport>prompt</ErrorReport> | |
34 | + <WarningLevel>4</WarningLevel> | |
35 | + </PropertyGroup> | |
36 | + <PropertyGroup> | |
37 | + <ApplicationIcon>NotifyMessage.ico</ApplicationIcon> | |
38 | + </PropertyGroup> | |
39 | + <ItemGroup> | |
40 | + <Reference Include="System" /> | |
41 | + <Reference Include="System.Core" /> | |
42 | + <Reference Include="System.Xml.Linq" /> | |
43 | + <Reference Include="System.Data.DataSetExtensions" /> | |
44 | + <Reference Include="Microsoft.CSharp" /> | |
45 | + <Reference Include="System.Data" /> | |
46 | + <Reference Include="System.Deployment" /> | |
47 | + <Reference Include="System.Drawing" /> | |
48 | + <Reference Include="System.Net.Http" /> | |
49 | + <Reference Include="System.Windows.Forms" /> | |
50 | + <Reference Include="System.Xml" /> | |
51 | + </ItemGroup> | |
52 | + <ItemGroup> | |
53 | + <Compile Include="MainForm.cs"> | |
54 | + <SubType>Form</SubType> | |
55 | + </Compile> | |
56 | + <Compile Include="MainForm.Designer.cs"> | |
57 | + <DependentUpon>MainForm.cs</DependentUpon> | |
58 | + </Compile> | |
59 | + <Compile Include="Program.cs" /> | |
60 | + <Compile Include="Properties\AssemblyInfo.cs" /> | |
61 | + <EmbeddedResource Include="MainForm.resx"> | |
62 | + <DependentUpon>MainForm.cs</DependentUpon> | |
63 | + </EmbeddedResource> | |
64 | + <EmbeddedResource Include="Properties\Resources.resx"> | |
65 | + <Generator>ResXFileCodeGenerator</Generator> | |
66 | + <LastGenOutput>Resources.Designer.cs</LastGenOutput> | |
67 | + <SubType>Designer</SubType> | |
68 | + </EmbeddedResource> | |
69 | + <Compile Include="Properties\Resources.Designer.cs"> | |
70 | + <AutoGen>True</AutoGen> | |
71 | + <DependentUpon>Resources.resx</DependentUpon> | |
72 | + <DesignTime>True</DesignTime> | |
73 | + </Compile> | |
74 | + <None Include="Properties\Settings.settings"> | |
75 | + <Generator>SettingsSingleFileGenerator</Generator> | |
76 | + <LastGenOutput>Settings.Designer.cs</LastGenOutput> | |
77 | + </None> | |
78 | + <Compile Include="Properties\Settings.Designer.cs"> | |
79 | + <AutoGen>True</AutoGen> | |
80 | + <DependentUpon>Settings.settings</DependentUpon> | |
81 | + <DesignTimeSharedInput>True</DesignTimeSharedInput> | |
82 | + </Compile> | |
83 | + </ItemGroup> | |
84 | + <ItemGroup> | |
85 | + <None Include="App.config" /> | |
86 | + </ItemGroup> | |
87 | + <ItemGroup> | |
88 | + <None Include="NotifyMessage.ico" /> | |
89 | + </ItemGroup> | |
90 | + <ItemGroup> | |
91 | + <None Include="NotifyMessageTray.ico" /> | |
92 | + </ItemGroup> | |
93 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | |
94 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |
95 | + Other similar extension points exist, see Microsoft.Common.targets. | |
96 | + <Target Name="BeforeBuild"> | |
97 | + </Target> | |
98 | + <Target Name="AfterBuild"> | |
99 | + </Target> | |
100 | + --> | |
101 | +</Project> | |
\ No newline at end of file |
@@ -0,0 +1,50 @@ | ||
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using System.Windows.Forms; | |
6 | + | |
7 | + | |
8 | +namespace NotifyMessage | |
9 | +{ | |
10 | + static class Program | |
11 | + { | |
12 | + // グローバル変数 | |
13 | + public static string Message = ""; | |
14 | + public enum MSGLEVEL : int // MessageLevel | |
15 | + { | |
16 | + INFO = 1, | |
17 | + WARN, | |
18 | + ERR, | |
19 | + }; | |
20 | + public static MSGLEVEL msglevel = MSGLEVEL.INFO; | |
21 | + | |
22 | + /// <summary> | |
23 | + /// アプリケーションのメイン エントリ ポイントです。 | |
24 | + /// </summary> | |
25 | + [STAThread] | |
26 | + static void Main() | |
27 | + { | |
28 | + Application.EnableVisualStyles(); | |
29 | + Application.SetCompatibleTextRenderingDefault(false); | |
30 | + // 分けて処理をして最初にフォームを表示しないようにする | |
31 | + // Application.Run(new MainForm()); | |
32 | + | |
33 | + string[] cmds = System.Environment.GetCommandLineArgs(); | |
34 | + for (int i = 1; i < cmds.Length; i++) | |
35 | + { | |
36 | + if (0 <= cmds[i].IndexOf("/ERR", StringComparison.OrdinalIgnoreCase)) msglevel = MSGLEVEL.ERR; | |
37 | + else if (0 <= cmds[i].IndexOf("/WARN", StringComparison.OrdinalIgnoreCase)) msglevel = MSGLEVEL.WARN; | |
38 | + else if (0 <= cmds[i].IndexOf("/INFO", StringComparison.OrdinalIgnoreCase)) msglevel = MSGLEVEL.INFO; | |
39 | + else Message = cmds[i]; | |
40 | + } | |
41 | + | |
42 | + new MainForm(); | |
43 | + | |
44 | + if (Message != "") | |
45 | + { | |
46 | + //Application.Run(); | |
47 | + } | |
48 | + } | |
49 | + } | |
50 | +} |
@@ -0,0 +1,36 @@ | ||
1 | +using System.Reflection; | |
2 | +using System.Runtime.CompilerServices; | |
3 | +using System.Runtime.InteropServices; | |
4 | + | |
5 | +// アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 | |
6 | +// アセンブリに関連付けられている情報を変更するには、 | |
7 | +// これらの属性値を変更してください。 | |
8 | +[assembly: AssemblyTitle("NotifyMessage")] | |
9 | +[assembly: AssemblyDescription("Notifiying a message in Action center.")] | |
10 | +[assembly: AssemblyConfiguration("")] | |
11 | +[assembly: AssemblyCompany("")] | |
12 | +[assembly: AssemblyProduct("NotifyMessage")] | |
13 | +[assembly: AssemblyCopyright("Copyright © 2015 JeffyTS All rights reserved")] | |
14 | +[assembly: AssemblyTrademark("")] | |
15 | +[assembly: AssemblyCulture("")] | |
16 | + | |
17 | +// ComVisible を false に設定すると、その型はこのアセンブリ内で COM コンポーネントから | |
18 | +// 参照不可能になります。COM からこのアセンブリ内の型にアクセスする場合は、 | |
19 | +// その型の ComVisible 属性を true に設定してください。 | |
20 | +[assembly: ComVisible(false)] | |
21 | + | |
22 | +// このプロジェクトが COM に公開される場合、次の GUID が typelib の ID になります | |
23 | +[assembly: Guid("1bf662df-003b-43f9-9e1f-c5fa0cf8092f")] | |
24 | + | |
25 | +// アセンブリのバージョン情報は次の 4 つの値で構成されています: | |
26 | +// | |
27 | +// メジャー バージョン | |
28 | +// マイナー バージョン | |
29 | +// ビルド番号 | |
30 | +// Revision | |
31 | +// | |
32 | +// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を | |
33 | +// 既定値にすることができます: | |
34 | +// [assembly: AssemblyVersion("1.0.*")] | |
35 | +[assembly: AssemblyVersion("1.0.0.*")] | |
36 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
@@ -0,0 +1,83 @@ | ||
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// このコードはツールによって生成されました。 | |
4 | +// ランタイム バージョン:4.0.30319.42000 | |
5 | +// | |
6 | +// このファイルへの変更は、以下の状況下で不正な動作の原因になったり、 | |
7 | +// コードが再生成されるときに損失したりします。 | |
8 | +// </auto-generated> | |
9 | +//------------------------------------------------------------------------------ | |
10 | + | |
11 | +namespace NotifyMessage.Properties { | |
12 | + using System; | |
13 | + | |
14 | + | |
15 | + /// <summary> | |
16 | + /// ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラスです。 | |
17 | + /// </summary> | |
18 | + // このクラスは StronglyTypedResourceBuilder クラスが ResGen | |
19 | + // または Visual Studio のようなツールを使用して自動生成されました。 | |
20 | + // メンバーを追加または削除するには、.ResX ファイルを編集して、/str オプションと共に | |
21 | + // ResGen を実行し直すか、または VS プロジェクトをビルドし直します。 | |
22 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | |
23 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
24 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
25 | + internal class Resources { | |
26 | + | |
27 | + private static global::System.Resources.ResourceManager resourceMan; | |
28 | + | |
29 | + private static global::System.Globalization.CultureInfo resourceCulture; | |
30 | + | |
31 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | |
32 | + internal Resources() { | |
33 | + } | |
34 | + | |
35 | + /// <summary> | |
36 | + /// このクラスで使用されているキャッシュされた ResourceManager インスタンスを返します。 | |
37 | + /// </summary> | |
38 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
39 | + internal static global::System.Resources.ResourceManager ResourceManager { | |
40 | + get { | |
41 | + if (object.ReferenceEquals(resourceMan, null)) { | |
42 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NotifyMessage.Properties.Resources", typeof(Resources).Assembly); | |
43 | + resourceMan = temp; | |
44 | + } | |
45 | + return resourceMan; | |
46 | + } | |
47 | + } | |
48 | + | |
49 | + /// <summary> | |
50 | + /// 厳密に型指定されたこのリソース クラスを使用して、すべての検索リソースに対し、 | |
51 | + /// 現在のスレッドの CurrentUICulture プロパティをオーバーライドします。 | |
52 | + /// </summary> | |
53 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | |
54 | + internal static global::System.Globalization.CultureInfo Culture { | |
55 | + get { | |
56 | + return resourceCulture; | |
57 | + } | |
58 | + set { | |
59 | + resourceCulture = value; | |
60 | + } | |
61 | + } | |
62 | + | |
63 | + /// <summary> | |
64 | + /// (アイコン) に類似した型 System.Drawing.Icon のローカライズされたリソースを検索します。 | |
65 | + /// </summary> | |
66 | + internal static System.Drawing.Icon NotifyMessage { | |
67 | + get { | |
68 | + object obj = ResourceManager.GetObject("NotifyMessage", resourceCulture); | |
69 | + return ((System.Drawing.Icon)(obj)); | |
70 | + } | |
71 | + } | |
72 | + | |
73 | + /// <summary> | |
74 | + /// (アイコン) に類似した型 System.Drawing.Icon のローカライズされたリソースを検索します。 | |
75 | + /// </summary> | |
76 | + internal static System.Drawing.Icon NotifyMessageTray { | |
77 | + get { | |
78 | + object obj = ResourceManager.GetObject("NotifyMessageTray", resourceCulture); | |
79 | + return ((System.Drawing.Icon)(obj)); | |
80 | + } | |
81 | + } | |
82 | + } | |
83 | +} |
@@ -0,0 +1,127 @@ | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | |
2 | +<root> | |
3 | + <!-- | |
4 | + Microsoft ResX Schema | |
5 | + | |
6 | + Version 2.0 | |
7 | + | |
8 | + The primary goals of this format is to allow a simple XML format | |
9 | + that is mostly human readable. The generation and parsing of the | |
10 | + various data types are done through the TypeConverter classes | |
11 | + associated with the data types. | |
12 | + | |
13 | + Example: | |
14 | + | |
15 | + ... ado.net/XML headers & schema ... | |
16 | + <resheader name="resmimetype">text/microsoft-resx</resheader> | |
17 | + <resheader name="version">2.0</resheader> | |
18 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | |
19 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | |
20 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | |
21 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | |
22 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | |
23 | + <value>[base64 mime encoded serialized .NET Framework object]</value> | |
24 | + </data> | |
25 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | |
26 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | |
27 | + <comment>This is a comment</comment> | |
28 | + </data> | |
29 | + | |
30 | + There are any number of "resheader" rows that contain simple | |
31 | + name/value pairs. | |
32 | + | |
33 | + Each data row contains a name, and value. The row also contains a | |
34 | + type or mimetype. Type corresponds to a .NET class that support | |
35 | + text/value conversion through the TypeConverter architecture. | |
36 | + Classes that don't support this are serialized and stored with the | |
37 | + mimetype set. | |
38 | + | |
39 | + The mimetype is used for serialized objects, and tells the | |
40 | + ResXResourceReader how to depersist the object. This is currently not | |
41 | + extensible. For a given mimetype the value must be set accordingly: | |
42 | + | |
43 | + Note - application/x-microsoft.net.object.binary.base64 is the format | |
44 | + that the ResXResourceWriter will generate, however the reader can | |
45 | + read any of the formats listed below. | |
46 | + | |
47 | + mimetype: application/x-microsoft.net.object.binary.base64 | |
48 | + value : The object must be serialized with | |
49 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | |
50 | + : and then encoded with base64 encoding. | |
51 | + | |
52 | + mimetype: application/x-microsoft.net.object.soap.base64 | |
53 | + value : The object must be serialized with | |
54 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | |
55 | + : and then encoded with base64 encoding. | |
56 | + | |
57 | + mimetype: application/x-microsoft.net.object.bytearray.base64 | |
58 | + value : The object must be serialized into a byte array | |
59 | + : using a System.ComponentModel.TypeConverter | |
60 | + : and then encoded with base64 encoding. | |
61 | + --> | |
62 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | |
63 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | |
64 | + <xsd:element name="root" msdata:IsDataSet="true"> | |
65 | + <xsd:complexType> | |
66 | + <xsd:choice maxOccurs="unbounded"> | |
67 | + <xsd:element name="metadata"> | |
68 | + <xsd:complexType> | |
69 | + <xsd:sequence> | |
70 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> | |
71 | + </xsd:sequence> | |
72 | + <xsd:attribute name="name" use="required" type="xsd:string" /> | |
73 | + <xsd:attribute name="type" type="xsd:string" /> | |
74 | + <xsd:attribute name="mimetype" type="xsd:string" /> | |
75 | + <xsd:attribute ref="xml:space" /> | |
76 | + </xsd:complexType> | |
77 | + </xsd:element> | |
78 | + <xsd:element name="assembly"> | |
79 | + <xsd:complexType> | |
80 | + <xsd:attribute name="alias" type="xsd:string" /> | |
81 | + <xsd:attribute name="name" type="xsd:string" /> | |
82 | + </xsd:complexType> | |
83 | + </xsd:element> | |
84 | + <xsd:element name="data"> | |
85 | + <xsd:complexType> | |
86 | + <xsd:sequence> | |
87 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
88 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | |
89 | + </xsd:sequence> | |
90 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | |
91 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | |
92 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | |
93 | + <xsd:attribute ref="xml:space" /> | |
94 | + </xsd:complexType> | |
95 | + </xsd:element> | |
96 | + <xsd:element name="resheader"> | |
97 | + <xsd:complexType> | |
98 | + <xsd:sequence> | |
99 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | |
100 | + </xsd:sequence> | |
101 | + <xsd:attribute name="name" type="xsd:string" use="required" /> | |
102 | + </xsd:complexType> | |
103 | + </xsd:element> | |
104 | + </xsd:choice> | |
105 | + </xsd:complexType> | |
106 | + </xsd:element> | |
107 | + </xsd:schema> | |
108 | + <resheader name="resmimetype"> | |
109 | + <value>text/microsoft-resx</value> | |
110 | + </resheader> | |
111 | + <resheader name="version"> | |
112 | + <value>2.0</value> | |
113 | + </resheader> | |
114 | + <resheader name="reader"> | |
115 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
116 | + </resheader> | |
117 | + <resheader name="writer"> | |
118 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | |
119 | + </resheader> | |
120 | + <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | |
121 | + <data name="NotifyMessage" type="System.Resources.ResXFileRef, System.Windows.Forms"> | |
122 | + <value>..\NotifyMessage.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | |
123 | + </data> | |
124 | + <data name="NotifyMessageTray" type="System.Resources.ResXFileRef, System.Windows.Forms"> | |
125 | + <value>..\NotifyMessageTray.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> | |
126 | + </data> | |
127 | +</root> | |
\ No newline at end of file |
@@ -0,0 +1,30 @@ | ||
1 | +//------------------------------------------------------------------------------ | |
2 | +// <auto-generated> | |
3 | +// This code was generated by a tool. | |
4 | +// Runtime Version:4.0.30319.42000 | |
5 | +// | |
6 | +// Changes to this file may cause incorrect behavior and will be lost if | |
7 | +// the code is regenerated. | |
8 | +// </auto-generated> | |
9 | +//------------------------------------------------------------------------------ | |
10 | + | |
11 | +namespace NotifyMessage.Properties | |
12 | +{ | |
13 | + | |
14 | + | |
15 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
16 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] | |
17 | + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase | |
18 | + { | |
19 | + | |
20 | + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |
21 | + | |
22 | + public static Settings Default | |
23 | + { | |
24 | + get | |
25 | + { | |
26 | + return defaultInstance; | |
27 | + } | |
28 | + } | |
29 | + } | |
30 | +} |
@@ -0,0 +1,7 @@ | ||
1 | +<?xml version='1.0' encoding='utf-8'?> | |
2 | +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | |
3 | + <Profiles> | |
4 | + <Profile Name="(Default)" /> | |
5 | + </Profiles> | |
6 | + <Settings /> | |
7 | +</SettingsFile> |
@@ -0,0 +1,39 @@ | ||
1 | +NotifyMessage | |
2 | + | |
3 | + Notifying a message in Action center. | |
4 | + | |
5 | + Copyright © 2015 JeffyTS All rights reserved. | |
6 | + | |
7 | + Installing: | |
8 | + You can copy NotifyMessage files to any folder. | |
9 | + NotifyMessage can work any folder. This program never use any registry-key. | |
10 | + You need .NET Framework 4.5. | |
11 | + | |
12 | + Files: | |
13 | + NotifyMessage.exe | |
14 | + sample.lnk | |
15 | + readme.txt | |
16 | + | |
17 | + Usage: | |
18 | + NotifyMessage.exe [opt] "Your message" | |
19 | + [NOTE] | |
20 | + You might be better to use shortcut files. See sample.lnk property. | |
21 | + Option: | |
22 | + /INFO(default) | /WARN | /ERR | |
23 | + | |
24 | +Thanks to Microsoft Corporation. | |
25 | + This program has been developed on | |
26 | + Visual Studio Community 2015 | |
27 | + Windows10 Professional 64bit. | |
28 | + | |
29 | +Rlease & modify | |
30 | + --- Date --- Ver. -- Modify -- | |
31 | + 2015/09/10 Start developping. | |
32 | + 2015/09/12 1.0.0 First release. | |
33 | + | |
34 | + | |
35 | + | |
36 | + | |
37 | + | |
38 | + | |
39 | + |