private void AddNewTag()
        {
            var advm = new AddTagViewModel(true, null, SupportedTags);
            var antv = new AddTagView
            {
                DataContext           = advm,
                Owner                 = Application.Current.MainWindow,
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };

            antv.ShowDialog();
        }
Example #2
0
        private void Add(object obj)
        {
            var window = obj as Window;

            if (window == null)
            {
                return;
            }
            var atvm = new AddTagViewModel(false, Channel, supportedTags);
            var atv  = new AddTagView {
                DataContext = atvm, Owner = window, WindowStartupLocation = WindowStartupLocation.CenterOwner
            };

            atv.ShowDialog();
        }