// Implement IEditableObject interface.
 public void BeginEdit()
 {
     if (m_Editing == false)
     {
         temp_Task = this.MemberwiseClone() as EmergencyAlarm;
         m_Editing = true;
     }
 }
 public void EndEdit()
 {
     if (m_Editing == true)
     {
         temp_Task = null;
         m_Editing = false;
     }
 }
        private void Broadcast_Import()
        {
            for (int i = 2; i < 1000; i++)
            {
                if (ws4.Cells[i, 1].Value != null)
                {
                    AreaAlarm areaAlarm = new AreaAlarm();
                    areaAlarm.mControlNo   = Convert.ToString(ws4.Cells[i, 1].Value);
                    areaAlarm.mEmerg_input = Convert.ToString(ws4.Cells[i, 2].Value);
                    areaAlarm.mMassage1    = Convert.ToString(ws4.Cells[i, 3].Value);
                    areaAlarm.mMassage2    = Convert.ToString(ws4.Cells[i, 4].Value);
                    areaAlarm.mMassage3    = Convert.ToString(ws4.Cells[i, 5].Value);
                    areaAlarm.mMassage4    = Convert.ToString(ws4.Cells[i, 6].Value);
                    areaAlarm.mFireFloor   = Convert.ToString(ws4.Cells[i, 7].Value);
                    areaAlarm.mTopFloor    = Convert.ToString(ws4.Cells[i, 8].Value);
                    Global_Variable.oAreaAlarm_Table.Add(areaAlarm);
                }
                else
                {
                    break;
                }
            }

            for (int i = 2; i < 1000; i++)
            {
                if (ws2.Cells[i, 11].Value != null)
                {
                    EmergencyAlarm emergencyAlarm = new EmergencyAlarm();
                    emergencyAlarm.mControlNo   = Convert.ToString(ws4.Cells[i, 10].Value);
                    emergencyAlarm.mEmerg_input = Convert.ToString(ws4.Cells[i, 11].Value);
                    emergencyAlarm.mMassage1    = Convert.ToString(ws4.Cells[i, 12].Value);
                    emergencyAlarm.mMassage2    = Convert.ToString(ws4.Cells[i, 13].Value);
                    emergencyAlarm.mMassage3    = Convert.ToString(ws4.Cells[i, 14].Value);
                    emergencyAlarm.mMassage4    = Convert.ToString(ws4.Cells[i, 15].Value);
                    emergencyAlarm.mFireFloor   = Convert.ToString(ws4.Cells[i, 16].Value);
                    emergencyAlarm.mTopFloor    = Convert.ToString(ws4.Cells[i, 17].Value);
                    Global_Variable.oEmergencyAlarm_Table.Add(emergencyAlarm);
                }
                else
                {
                    break;
                }
            }
        }