Beispiel #1
0
        void EditProjectFrm_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;

            LoadData();
        }
Beispiel #2
0
        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 ProjectManagerFrm_Load(object sender, EventArgs e)
        {
            UI.CommonModule.DataGridViewActionButtonColumn actionColumn =
                new UI.CommonModule.DataGridViewActionButtonColumn();
            actionColumn.Name             = "ColAction";
            actionColumn.DataPropertyName = "ProjectId";
            actionColumn.MinimumWidth     = 120;
            dgvDataSource.Columns.Add(actionColumn);


            ucToolBar.OnAddClick += new EventHandler(ucToolBar_OnAddClick);

            projectManager = Utility.SpringUtils.Context.GetObject("ProjectManager") as ITBProjectManager;
            LoadData();
        }