private void AddTagCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            AddTag dialog = new emlekmu.AddTag(MainContent.addTagCallback, MainContent.Tags);

            dialog.Owner = Application.Current.MainWindow;
            dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            dialog.Height    = 490;
            dialog.Width     = 350;
            dialog.MinHeight = 420;
            dialog.MinWidth  = 280;
            dialog.ShowDialog();
        }
Ejemplo n.º 2
0
        private void AddTagButton_Click(object sender, RoutedEventArgs e)
        {
            AddTag addTagDialog = new emlekmu.AddTag(AddTagCallback, Tags);

            addTagDialog.Owner = Application.Current.MainWindow;
            addTagDialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            addTagDialog.Height    = 490;
            addTagDialog.Width     = 350;
            addTagDialog.MinHeight = 420;
            addTagDialog.MinWidth  = 280;

            addTagDialog.ShowDialog();

            if (addTagDialog.DialogResult.HasValue && addTagDialog.DialogResult.Value)
            {
                this.Scroller.ScrollToBottom();
                this.UpdateLayout();
                this.tagClicked(addTagDialog.NewTag.Id);
            }
        }