private void label_Click(object sender, System.EventArgs e)
        {
            if (_isTermEnabled)
            {
                _isTermEnabled = false;
                this.BackColor = System.Drawing.Color.DarkSalmon;
            }
            else
            {
                _isTermEnabled = true;
                this.BackColor = System.Drawing.Color.DarkSeaGreen;
            }

            if (_isTermEnabled == AllowedTimeSlotsForm.getATSForm().getAllowedTimeSlots()[_indexRow, _indexCol])
            {
                AllowedTimeSlotsForm.getATSForm().decrTimeSlotChangeCounter();
            }
            else
            {
                AllowedTimeSlotsForm.getATSForm().incrTimeSlotChangeCounter();
            }

            if (AllowedTimeSlotsForm.getATSForm().getTimeSlotChangeCounter() > 0)
            {
                AllowedTimeSlotsForm.getATSForm().getOKButton().Enabled = true;
            }
            else
            {
                AllowedTimeSlotsForm.getATSForm().getOKButton().Enabled = false;
            }
        }
        private void RCButton_Click(object sender, System.EventArgs e)
        {
            foreach (Label edotlW in AllowedTimeSlotsForm.MAIN_PANEL.Controls)
            {
                if (edotlW.GetType().FullName == "OpenCTT.EnableDisableOneTermLabel")
                {
                    EnableDisableOneTermLabel edotl = (EnableDisableOneTermLabel)edotlW;

                    if (_isForRow)
                    {
                        if (edotl.getIndexRow() == _row)
                        {
                            if (_isForEnable && !edotl.getIsTermEnabled())
                            {
                                edotl.setIsTermEnabled(true);
                                if (edotl.getIsTermEnabled() == AllowedTimeSlotsForm.getATSForm().getAllowedTimeSlots()[edotl.getIndexRow(), edotl.getIndexCol()])
                                {
                                    AllowedTimeSlotsForm.getATSForm().decrTimeSlotChangeCounter();
                                }
                                else
                                {
                                    AllowedTimeSlotsForm.getATSForm().incrTimeSlotChangeCounter();
                                }
                            }
                            else if (!_isForEnable && edotl.getIsTermEnabled())
                            {
                                edotl.setIsTermEnabled(false);
                                if (edotl.getIsTermEnabled() == AllowedTimeSlotsForm.getATSForm().getAllowedTimeSlots()[edotl.getIndexRow(), edotl.getIndexCol()])
                                {
                                    AllowedTimeSlotsForm.getATSForm().decrTimeSlotChangeCounter();
                                }
                                else
                                {
                                    AllowedTimeSlotsForm.getATSForm().incrTimeSlotChangeCounter();
                                }
                            }
                        }
                    }
                    else
                    {
                        if (edotl.getIndexCol() == _col)
                        {
                            if (_isForEnable && !edotl.getIsTermEnabled())
                            {
                                edotl.setIsTermEnabled(true);
                                if (edotl.getIsTermEnabled() == AllowedTimeSlotsForm.getATSForm().getAllowedTimeSlots()[edotl.getIndexRow(), edotl.getIndexCol()])
                                {
                                    AllowedTimeSlotsForm.getATSForm().decrTimeSlotChangeCounter();
                                }
                                else
                                {
                                    AllowedTimeSlotsForm.getATSForm().incrTimeSlotChangeCounter();
                                }
                            }
                            else if (!_isForEnable && edotl.getIsTermEnabled())
                            {
                                edotl.setIsTermEnabled(false);
                                if (edotl.getIsTermEnabled() == AllowedTimeSlotsForm.getATSForm().getAllowedTimeSlots()[edotl.getIndexRow(), edotl.getIndexCol()])
                                {
                                    AllowedTimeSlotsForm.getATSForm().decrTimeSlotChangeCounter();
                                }
                                else
                                {
                                    AllowedTimeSlotsForm.getATSForm().incrTimeSlotChangeCounter();
                                }
                            }
                        }
                    }
                }
            }

            if (AllowedTimeSlotsForm.getATSForm().getTimeSlotChangeCounter() > 0)
            {
                AllowedTimeSlotsForm.getATSForm().getOKButton().Enabled = true;
            }
            else
            {
                AllowedTimeSlotsForm.getATSForm().getOKButton().Enabled = false;
            }
        }