Esempio n. 1
0
        private void EditAction_Click(object sender, RoutedEventArgs e)
        {
            EditTag editTagDialog = new EditTag(new Tag(Id, Color, Description), EditTagCallback);

            editTagDialog.Height = 590;
            editTagDialog.Width  = 450;
            editTagDialog.Owner  = Application.Current.MainWindow;
            editTagDialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            editTagDialog.ShowDialog();
        }
Esempio n. 2
0
        private void EditTagCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            string  toEdit = EnlargenedTags.First();
            Tag     t      = this.Tags.SingleOrDefault(x => x.Id == toEdit);
            EditTag dialog = new EditTag(t, this.EditTagCallback);

            dialog.Owner = Application.Current.MainWindow;
            dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            dialog.Height    = 490;
            dialog.Width     = 350;
            dialog.MinHeight = 420;
            dialog.MinWidth  = 280;
            dialog.ShowDialog();
        }