private void FormObjectContext_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'attendance.VIQInfo' table. You can move, or remove it, as needed. if (Questionnaire.FillObjectRelatedTable(MyConnection.GetConnection(), this.m_objectid, this.attendance.VIQInfo) == 0) { this.splitContainer1.Panel2Collapsed = true; } if (Vetting.Vetting.FillObjectRelatedTable(MyConnection.GetConnection(), this.m_objectid, -1, this.attendance.ObjectVettingInfo) == 0) { this.splitContainer1.Panel1Collapsed = true; } if (this.m_vesselid != -1) { this.chb_vesselspecific.Visible = true; vesselfilter = "Vesselid = " + this.m_vesselid.ToString(); ApplyFilter(false); } }