Пример #1
0
        void FormQuestionnaire__FormClosed(object sender, FormClosedEventArgs e)
        {
            FormQuestionnaire frmq = (FormQuestionnaire)sender;

            if (frmq.NewAttendance)
            {
                Portable.LoadVettingInfo(this.m_filepath, this.m_password, this.attendance.VettingInfo, frmq.VetId);
            }
            else if (frmq.UpdatedAttendance)
            {
                DataRow [] dr = this.attendance.VettingInfo.Select("VETID = " + frmq.VetId.ToString());
                if (dr.GetLength(0) == 1)
                {
                    int   total = 0;
                    float perc  = 0;
                    dr[0]["NumAnswer"] = Portable.GetVettingStatistics(this.m_filepath, this.m_password, frmq.VetId, out total, out perc);
                    dr[0].AcceptChanges();
                }
            }
        }