예제 #1
0
 void  标离开(object obj)
 {
     if (_绑定对象信息框 != null)
     {
         _绑定对象信息框.Close();
         _绑定对象信息框 = null;
     }
 }
예제 #2
0
 void  标单击(object obj, MouseEventArgs e)
 {
     if (e.Button != MouseButtons.Left)
     {
         return;
     }
     标离开(obj);
     _绑定对象信息框 = new F提示()
     {
         TopMost         = true,
         StartPosition   = FormStartPosition.CenterParent,
         ShowIcon        = false,
         ShowInTaskbar   = false,
         FormBorderStyle = FormBorderStyle.None,
     };
     _绑定对象信息框.ShowDialog();
 }
예제 #3
0
 void  标进入(object obj)
 {
     //如果在进行圈选操作, 不弹出显示
     if (_多次圈选窗口.Visible || _单次圈选窗口.Visible)
     {
         return;
     }
     标离开(obj);
     _绑定对象信息框 = new F提示()
     {
         TopMost         = true,
         StartPosition   = FormStartPosition.Manual,
         Location        = MousePosition,
         ShowIcon        = false,
         ShowInTaskbar   = false,
         FormBorderStyle = FormBorderStyle.None,
     };
     _绑定对象信息框.Show();
 }