示例#1
0
        public DialogBeamProperties(DialogBeamPropertiesViewModel viewModel)
        {
            InitializeComponent();
            ProfileFileData allProfileFileData = ProfileFileData.Instance;

            InitMessenger();
            this.viewModel   = viewModel;
            this.DataContext = viewModel;
        }
        private void DummyBeamPropertyData(BeamProperties prop)
        {
            prop.AttributesProfileText = "RS";
            BeamValuesGetterDummyImplementation beamValuesGetter = new BeamValuesGetterDummyImplementation();
            DialogBeamPropertiesViewModel       viewModel        = new DialogBeamPropertiesViewModel(new MemberModifierFactoryDummyImplementation(), prop, prop, beamValuesGetter);

            testBeam          = new DialogBeamProperties.DialogBeamProperties(viewModel);
            testBeam.Closing += TestBeam_Closing;
            testBeam.Show();
            this.Hide();
        }