private void REPanel_MouseClick(object sender, MouseEventArgs e)
 {
     try
     {
         int selected = -1;
         for (int i = 0; i < ElementTable.Elements.Length; i++)
         {
             if (ElementTable.Elements[i].Row < 9)
             {
                 continue;
             }
             if (e.X > SelectionRect[i].X && e.Y > SelectionRect[i].Y &&
                 e.X < SelectionRect[i].X + SelectionRect[i].Width &&
                 e.Y < SelectionRect[i].Y + SelectionRect[i].Height)
             {
                 selected = i;// ElementTable.Elements[i].Num;
                 break;
             }
         }
         if (selected == -1)
         {
             return;
         }
         SelectionTable[selected] = !SelectionTable[selected];
         REPanel.Refresh();
         if (SelectorListener != null)
         {
             SelectorListener();
         }
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }
 private void FobidenElements_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         CommonPanel.Refresh();
         REPanel.Refresh();
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }
 private void FobidenElements_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     try
     {
         CommonPanel.Refresh();
         REPanel.Refresh();
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }
 private void SelectElementBtn_Click(object sender, EventArgs e)
 {
     try
     {
         SetSelection(true);
         CommonPanel.Refresh();
         REPanel.Refresh();
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }