void EditTunnelFrm_Load(object sender, EventArgs e) { //居中显示 this.Left = (Screen.PrimaryScreen.WorkingArea.Width - Width) / 2; this.Top = (Screen.PrimaryScreen.WorkingArea.Height - Height) / 2; projectManager = Utility.SpringUtils.Context.GetObject("ProjectManager") as ITBProjectManager; tunnelManager = Utility.SpringUtils.Context.GetObject("TunnelManager") as ITBTunnelManager; BuildComBoxDataSource(); }
void EditFanPosFrm_Load(object sender, EventArgs e) { //居中显示 this.Left = (Screen.PrimaryScreen.WorkingArea.Width - Width) / 2; this.Top = (Screen.PrimaryScreen.WorkingArea.Height - Height) / 2; tunnelManager = Utility.SpringUtils.Context.GetObject("TunnelManager") as ITBTunnelManager; posManager = Utility.SpringUtils.Context.GetObject("FanPositionManager") as ITBFanPositionManager; BindData(); }
void TunnelManagerFrm_Load(object sender, EventArgs e) { UI.CommonModule.DataGridViewActionButtonColumn actionColumn = new UI.CommonModule.DataGridViewActionButtonColumn(); actionColumn.Name = "ColAction"; actionColumn.DataPropertyName = "TunnelId"; actionColumn.MinimumWidth = 120; dgvDataSource.Columns.Add(actionColumn); ucToolBar.OnAddClick += new EventHandler(ucToolBar_OnAddClick); tunnelManager = Utility.SpringUtils.Context.GetObject("TunnelManager") as ITBTunnelManager; LoadData(); }