예제 #1
0
 private void CommonPanel_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];
         CommonPanel.Refresh();
         if (SelectorListener != null)
         {
             SelectorListener();
         }
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }
예제 #2
0
 private void FobidenElements_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         CommonPanel.Refresh();
         REPanel.Refresh();
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }
예제 #3
0
 private void FobidenElements_ItemCheck(object sender, ItemCheckEventArgs e)
 {
     try
     {
         CommonPanel.Refresh();
         REPanel.Refresh();
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }
예제 #4
0
 private void SelectElementBtn_Click(object sender, EventArgs e)
 {
     try
     {
         SetSelection(true);
         CommonPanel.Refresh();
         REPanel.Refresh();
     }
     catch (Exception ex)
     {
         Log.Out(ex);
     }
 }