public UploadDirectoryInfoEditWindow(UploadDirectoryInfoEditWindowViewModel viewModel)
        {
            this.DataContext      = viewModel;
            viewModel.CloseEvent += (sender, e) => this.Close();

            InitializeComponent();
        }
Пример #2
0
        public void ShowDialog(UploadDirectoryInfoEditWindowViewModel viewModel)
        {
            var window = new UploadDirectoryInfoEditWindow(viewModel);

            window.Owner = App.Current.MainWindow;
            window.ShowDialog();
        }