• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XAMLで書けるインストーラを作るプロジェクト


Commit MetaInfo

Revision3e6e2816c001535b2dadf7e55fbc5b37ad9bda0c (tree)
Time2011-06-03 17:41:50
Authorazyobuzin <azyobuzin@user...>
Commiterazyobuzin

Log Message

FileにNameプロパティを作成

Change Summary

Incremental Difference

--- a/XamlIn.Installer/File.cs
+++ b/XamlIn.Installer/File.cs
@@ -1,4 +1,5 @@
1-using System.Windows;
1+using System.IO;
2+using System.Windows;
23
34 namespace Azyobuzi.XamlIn.Installer
45 {
@@ -22,5 +23,16 @@ namespace Azyobuzi.XamlIn.Installer
2223 /// </summary>
2324 public static readonly DependencyProperty SourceProperty =
2425 DependencyProperty.Register("Source", typeof(string), typeof(File));
26+
27+ /// <summary>
28+ /// ファイル名。このこの名前を使ってパッケージにアクセスできます。
29+ /// </summary>
30+ public string Name
31+ {
32+ get
33+ {
34+ return Path.GetFileName(this.Source);
35+ }
36+ }
2537 }
2638 }