コード例 #1
0
        public AddVariableWindow(IElement element)
        {
            InitializeComponent();

            this.element = element;

            TypeConverterHelper.InitializeClasses();

            StartPosition = FormStartPosition.Manual;
            Location      = new Point(MainGlueWindow.MousePosition.X - this.Width / 2,
                                      System.Math.Max(0, MainGlueWindow.MousePosition.Y - Height / 2));


            FillExposableVariables();

            FillTunnelingObjects();

            FillOverridingTypesComboBox();

            FillTypeConverters();


            // force set visibility
            radCreateNewVariable_CheckedChanged(this, null);

            createNewVariableViewModel                  = new CreateNewVariableViewModel();
            createNewVariableControl1.DataContext       = createNewVariableViewModel;
            createNewVariableViewModel.PropertyChanged += HandleCreateNewVariablePropertyChanged;
            FillNewVariableTypes();
        }
コード例 #2
0
        public AddEventWindow()
        {
            InitializeComponent();

            TypeConverterHelper.InitializeClasses();

            StartPosition = FormStartPosition.Manual;

            Location = new Point(MainGlueWindow.MousePosition.X - this.Width / 2, MainGlueWindow.MousePosition.Y - this.Height / 2);

            FillExposableEvents();

            FillTunnelingObjects();

            FillAvailableDelegateTypes();

            FillTypeConverters();

            UpdateGenericUiVisibility();
        }
コード例 #3
0
        public AddVariableWindow(IElement element)
        {
            InitializeComponent();

            TypeConverterHelper.InitializeClasses();

            StartPosition = FormStartPosition.Manual;
            Location      = new Point(MainGlueWindow.MousePosition.X - this.Width / 2,
                                      System.Math.Max(0, MainGlueWindow.MousePosition.Y - Height / 2));


            FillExposableVariables();

            FillTunnelingObjects();

            FillOverridingTypesComboBox();

            FillTypeConverters();

            FillNewVariableTypes(element);
        }