Ejemplo n.º 1
0
        public frmNewPC(Form form,string mode)
        {
            switch (form.Name)
            {
                case "frmPC":
                    pc = form as frmPC;
                    break;
                case "frmAssignTo":
                    assign = form as frmAssignTo;
                    break;
            }

            this.mode = mode;

            InitializeComponent();
        }
Ejemplo n.º 2
0
        private void btnMoveToPC_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            List<string> scid = new List<string>();

            if (seatPlanControl.gridViewSeatPlan.RowCount.Equals(0))
            {
                XtraMessageBox.Show("There is no student(s) to assign", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                for (int x = 0; x < seatPlanControl.gridViewSeatPlan.SelectedRowsCount; x++)
                {
                    scid.Add(seatPlanControl.gridViewSeatPlan.GetRowCellValue(seatPlanControl.gridViewSeatPlan.GetSelectedRows()[x], seatPlanControl.gridColumnSCID).ToString());
                }
                frmAssignTo assign = new frmAssignTo(this, scid);
                assign.ShowDialog();
            }
        }