private void AddTag_Click(object sender, RoutedEventArgs e) { emlekmu.AddTag dialog = new emlekmu.AddTag(this.AddTagCallback, this.Tags); dialog.Owner = Application.Current.MainWindow; dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner; dialog.Height = 490; dialog.Width = 350; dialog.MinHeight = 420; dialog.MinWidth = 280; dialog.Show(); }
private void AddTagCommand_Executed(object sender, ExecutedRoutedEventArgs e) { AddTag dialog = new AddTag(this.AddTagCallback, this.Tags); dialog.Owner = Application.Current.MainWindow; dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner; dialog.Height = 490; dialog.Width = 350; dialog.MinHeight = 420; dialog.MinWidth = 280; dialog.ShowDialog(); }