public Message(Window owner = null) { InitializeComponent(); Owner = owner; Answer = DefaultCancel; Loaded += (s, e) => SetupButtons(); }
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(); }
internal EnumOptions(OptionsEnum type, string name, bool unknown, bool unknown2) { this.Enum = type; }
void ButtonHandler(object sender, RoutedEventArgs e) { Answer = buttonActions[sender as Button]; DialogResult = true; }