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(); }
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(); }
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); }