Exemple #1
0
        public void OnMouseDown(MouseState e)
        {
            var pr = getPaneRect();

            if (_lp != null && Math.Abs(e.Pos.Y - (pr.RB.Y - _lp.Rect.Height)) < 4 && pr.LR.IsIn(e.Pos))    // ログパネルサイズ変更
            {
                _sizingHeightOrg    = e.Pos.Clone() as ScreenPos;
                Pane.Control.Cursor = Cursors.SizeNS;
            }
            else
            {
                foreach (var kv in _clickArea)
                {
                    var re = ScreenRect.FromLTWH(kv.Value.X, kv.Value.Y, 20, 20);
                    if (re.IsIn(e.Pos))
                    {
                        LOG.ChangeDispLevel(kv.Key);
                        if (kv.Key == 0)    // クローズボタン
                        {
                            triggerCloseButtonProc();
                        }
                    }
                }
            }
        }
Exemple #2
0
 private void checkBoxLogDev_CheckedChanged(object sender, EventArgs e)
 {
     LOG.ChangeDispLevel(LLV.DEV, ((CheckBox)sender).Checked);
     listViewLogView.Items.Clear();
 }