Exemple #1
0
 /// <summary>
 /// 鼠标双击
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void SnipPageDesigner_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && Control.ModifierKeys != Keys.Control)
     {
         SnipPagePart part = Designer.GetPartAt(Designer.PointToClient(Control.MousePosition), true);
         if (part != null)
         {
             Designer.EditPart(part, false);
         }
     }
 }
Exemple #2
0
 void SnipPageDesigner_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && Control.ModifierKeys != Keys.Control)
     {
         SnipPagePart part = SnipPageDesigner.GetPartAt(SnipPageDesigner.PointToClient(Control.MousePosition), true);
         if (part != null)
         {
             SnipPageDesigner.EditPart(part, false);
             // from:郑浩 计划改为 双击后 “编辑” 2008.03.03早
             ////Point point = SnipPageDesigner.PointToClient(Control.MousePosition);
             ////if (part.HitTest(point))
             ////{
             //CssSetupForm form = new CssSetupForm(part.Css, CurType.Part);
             //if (form.ShowDialog() == DialogResult.OK)
             //{
             //    part.Css = form.CSSText;
             //}
             ////}
         }
     }
 }