Example #1
0
        private void sbSubject_Click(object sender, EventArgs e)
        {
            frmSubject mySubject = new frmSubject();

            if (mySubject.ShowDialog() == DialogResult.OK)
            {
                txtSubjectID.Text   = mySubject.GetSubject();
                txtSubjectName.Text = mySubject.GetSubjectName() + "Ã÷ϸÕÊ";
            }
            mySubject.Dispose();
        }
Example #2
0
        private void sbSelItem_Click(object sender, EventArgs e)
        {
            frmSubject F = new frmSubject();

            F.bFlag = true;
            if (F.ShowDialog() == DialogResult.OK)
            {
                edSubject.SetValue(F.GetSubject());
            }
            F.Dispose();
        }
Example #3
0
        private void lupControl6_ButtonClick(object sender, EventArgs e)
        {
            frmSubject mySubject = new frmSubject();

            mySubject.bFlag = true;
            if (mySubject.ShowDialog() == DialogResult.OK)
            {
                DataRow dr = ((DataRowView)binData.Current).Row;
                dr.BeginEdit();
                dr["F_Subject"] = mySubject.GetSubject();
                dr.EndEdit();
                binData.EndEdit();
            }
            mySubject.Dispose();
        }
Example #4
0
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmSubject mySubject = new frmSubject();

            mySubject.bFlag = true;
            if (mySubject.ShowDialog() == DialogResult.OK)
            {
                DataRow dr = ((DataRowView)binSlaver.Current).Row;
                dr.BeginEdit();
                dr["F_Subject"]     = mySubject.GetSubject();
                dr["F_SubjectName"] = mySubject.GetSubjectInfo();
                dr.EndEdit();
                binSlaver.EndEdit();
                gvMain.UpdateCurrentRow();
            }
            mySubject.Dispose();
        }