public void Initialize() { // The control created to help with marshaling // needs to be created on the main thread syncCtrl = new System.Windows.Forms.Control(); syncCtrl.CreateControl(); }
public static void Start() { m_invokeControl.CreateControl(); foreach (Type t in Assembly.GetExecutingAssembly().GetTypes().Where(x => IsMappingOf <EngineResponses.IEngineResponse>(x))) { m_mapRequests.Add(t.Name, t); } }
// This method handles the "Launch Color Builder UI" menu command. // Invokes the BuildColor method of the System.Web.UI.Design.ColorBuilder. private void launchColorBuilder(object sender, EventArgs e) { // Create a parent control. System.Windows.Forms.Control c = new System.Windows.Forms.Control(); c.CreateControl(); // Launch the Color Builder using the specified control // parent and an initial HTML format ("RRGGBB") color string. System.Web.UI.Design.ColorBuilder.BuildColor(this.Component, c, "405599"); }
public KhepriRhinocerosCommand() { // Rhino only creates one instance of each command class defined in a // plug-in, so it is safe to store a reference in a static property. Instance = this; // The control created to help with marshaling // needs to be created on the main thread syncCtrl = new System.Windows.Forms.Control(); syncCtrl.CreateControl(); }
public ConnectorBindingsMicroStationOpen2() : base() { Control = new System.Windows.Forms.Control(); Control.CreateControl(); ModelUnits = Model.GetModelInfo().GetMasterUnit().GetName(true, true); #if (OPENROADS || OPENRAIL) ConsensusConnection sdkCon = Bentley.CifNET.SDK.Edit.ConsensusConnectionEdit.GetActive(); GeomModel = sdkCon.GetActiveGeometricModel(); #endif }
public void Startup(ref object initializationData) { _application = initializationData as IApplication; if (_application == null) return; ArcMapAppHelperClass.GetValidWorkspaces(out _validWorkspaces); ArcMapAppHelperClass.GetTypeMaps(out _sqlPredicates, out _typeMapSystemToSql, out _typeMapSQLToSystem); _hluLayerStructure = new HluGISLayer.incid_mm_polygonsDataTable(); SetupDocumentEvents(_application.Document); if (PipeManager == null) { _pipeName = String.Format("{0}.{1}", ArcMapApp.PipeBaseName, _application.hWnd); PipeManager = new PipeManager(); PipeManager.Initialize(_pipeName, _pipeMaxReadBytes); PipeManager.IncomingDataReady += new EventHandler(_pipeManager_IncomingDataReady); _dummyControl = new System.Windows.Forms.Control(); _dummyControl.CreateControl(); _pipeSelDel = new PipeSelectionDelegate(PipeSelection); _selectedRowsUniqueDel = new SelectedRowsUniqueDelegate(SelectedRowsUnique); _flashSelFeatDel = new FlashSelectedFeatureDelegate(FlashFeature); _splitFeatDel = new SplitFeatureDelegate(SplitFeature); _splitFeatLogDel = new SplitFeaturesLogicallyDelegate(SplitFeaturesLogically); _mergeFeatDel = new MergeFeaturesDelegate(MergeFeatures); _mergeFeatLogDel = new MergeFeaturesLogicallyDelegate(MergeFeaturesLogically); _updAttsDel = new UpdateAttributesDelegate(UpdateAttributes); _updAttsSelDel = new UpdateAttributesSelectionDelegate(UpdateAttributes); _updAttsBulkDel = new UpdateAttributesBulkDelegate(UpdateAttributes); _selByQDefDel = new SelectByQueryDefDelegate(SelectByQueryDef); _selByQFilterDel = new SelectByQueryFilterDelegate(SelectByQueryFilter); _selByJoinDel = new SelectByJoinDelegate(SelectByJoin); _zoomSelDel = new ZoomSelectedDelegate(ZoomSelected); _zoomSelCursorDel = new ZoomSelectedCursorDelegate(ZoomSelectedCursor); _exportDel = new ExportDelegate(Export); _isHluWorkspaceDel = new IsHluWorkspaceDelegate(IsHluWorkspace); _ListHluLayersDel = new ListHluLayersDelegate(ListHluLayers); _isHluLayerDel = new IsHluLayerDelegate(IsHluLayer); _isEditingDel = new IsEditingDelegate(IsEditing); } }
public ConnectorBindingsAutocad2() : base() { Control = new System.Windows.Forms.Control(); Control.CreateControl(); }
public VisaEdit() { InitializeComponent(); InitializeViewModel(); InitCustomerModel(); List<Customer> tempCustomerList = visaORM.Customer.Where(c => c.FCreateUser == MainContext.UserID && c.FSysPut == false && c.FsysZF != true).ToList(); foreach (Customer tempCustomer in tempCustomerList) { customerList.Add(tempCustomer); } LeftGrid.DataContext = customerList; InitData(); InitSource(); _threadHelperControl = new System.Windows.Forms.Control(); _threadHelperControl.CreateControl(); InitialiseSwipeAPI(); }