public AddEditPipeSpecialFeatureDialog()
        {
            InitializeComponent();

            PipeSpecialFeatureViewModel viewModel = new PipeSpecialFeatureViewModel();
            viewModel.View = this;
            DataContext = viewModel;
        }
        public AddEditPipeSpecialFeatureDialog(int pipeSpecialFeatureId)
        {
            InitializeComponent();

            PipeSpecialFeatureViewModel viewModel = new PipeSpecialFeatureViewModel(pipeSpecialFeatureId);
            viewModel.View = this;
            viewModel.DataLoaded += () =>
                {
                    DataContext = viewModel;
                    Utils.ResetOriginalValues(this);
                };
        }