示例#1
0
		public Message(Window owner = null)
		{
			InitializeComponent();

			Owner = owner;
			Answer = DefaultCancel;

			Loaded += (s, e) => SetupButtons();
		}
示例#2
0
 public override void Load(DataReader reader)
 {
     base.Load(reader);
     m_Centre = reader.ReadPointF();
     m_Exit   = reader.ReadSizeF();
     Options  = (OptionsEnum)reader.ReadInt32();
     if (reader.Version < 75)
     {
         Options = Options | OptionsEnum.Explicit;
     }
     Classification = reader.ReadString();
 }
示例#3
0
 internal EnumOptions(OptionsEnum type, string name, bool unknown, bool unknown2)
 {
     this.Enum = type;
 }
示例#4
0
		void ButtonHandler(object sender, RoutedEventArgs e)
		{
			Answer = buttonActions[sender as Button];
			DialogResult = true;
		}