protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            RigBuilderVM vm = DataContext as RigBuilderVM;

            vm.Close();
        }
        void SetupDataContext()
        {
            RigBuilderVM vm = new RigBuilderVM();

            DataContext = vm;
            if (vm.CloseAction == null)
            {
                vm.CloseAction = new Action(Close);
            }
        }