public EditMonument(ObservableCollection <Type> types, ObservableCollection <Tag> tags, onEditMonument editMonumentCallback, Monument oldMonument, onAddType addTypeCallback, onAddTag addTagCallback) { InitializeComponent(); Root.DataContext = this; this.OldMonument = oldMonument; this.NewMonument = new Monument(); this.copyOldMonument(); this.initializeEraList(); this.initializeTouristicList(); this.DateCollection = getDateCollection(); this.Tags = tags; this.TagListBox.ItemsSource = this.Tags; this.Types = types; this.AddTypeCallBack = addTypeCallback; this.AddTagCallback = addTagCallback; this.EditMonumentCallback = editMonumentCallback; setTagFlags(); setEraComboBoxValue(); setTouristicComboBoxValue(); setDiscoveryDate(); TextCompositionManager.AddTextInputHandler(this, new TextCompositionEventHandler(OnTextComposition)); }
public AddTag(onAddTag addTagCallback, ObservableCollection <Tag> tags) { this.AddTagCallback = addTagCallback; this.Tags = tags; NewTag = new models.Tag(); InitializeComponent(); Root.DataContext = this; TextCompositionManager.AddTextInputHandler(this, new TextCompositionEventHandler(OnTextComposition)); }
public TagSection(ObservableCollection <Tag> tags, onAddTag addTagCallback, onEditTag editTagCallback, onRemoveTag removeTagCallback) { InitializeComponent(); EnlargenedTags = new ObservableCollection <string>(); Root.DataContext = this; TagClickedCallback = new onTagClicked(tagClicked); Tags = tags; AddTagCallback = addTagCallback; EditTagCallback = editTagCallback; RemoveTagCallback = removeTagCallback; TextCompositionManager.AddTextInputHandler(this, new TextCompositionEventHandler(OnTextComposition)); }
public AddMonument( ObservableCollection <Monument> monuments, ObservableCollection <Type> types, ObservableCollection <Tag> tags, onAddMonument addMonumentCallback, onAddType addTypeCallback, onAddTag addTagCallback) { InitializeComponent(); Root.DataContext = this; initializeEraList(); initializeTouristicList(); this.dateCollection = getDateCollection(); this.Monument = new Monument(); this.Monuments = monuments; this.Monument.Id = findNextId(); this.Types = types; this.Tags = tags; this.AddMonumentCallback = addMonumentCallback; this.AddTypeCallBack = addTypeCallback; this.AddTagCallback = addTagCallback; TextCompositionManager.AddTextInputHandler(this, new TextCompositionEventHandler(OnTextComposition)); }