mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 07:15:34 +00:00
4da41dbe67
Add a DemoAttribute to all the demos to support this svn path=/trunk/gtk-sharp/; revision=37669
37 lines
590 B
C#
37 lines
590 B
C#
using System;
|
|
|
|
namespace GtkDemo
|
|
{
|
|
[AttributeUsage (AttributeTargets.Class)]
|
|
public class DemoAttribute : Attribute
|
|
{
|
|
string label, filename, parent;
|
|
|
|
public DemoAttribute (string label, string filename) : this (label, filename, null)
|
|
{
|
|
}
|
|
|
|
public DemoAttribute (string label, string filename, string parent)
|
|
{
|
|
this.label = label;
|
|
this.filename = filename;
|
|
this.parent = parent;
|
|
}
|
|
|
|
public string Filename {
|
|
get { return filename; }
|
|
}
|
|
|
|
public string Label {
|
|
get { return label; }
|
|
}
|
|
|
|
public string Parent {
|
|
get {
|
|
return parent;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|