/// <summary> /// 双击控件发生 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void CKDView_mouDouble(object sender, MouseEventArgs e) { if (!(sender is CanKaoDianView)) { return; } CanKaoDianView cView = (CanKaoDianView)sender; SetCanKaoDianFrom sckFrom = new SetCanKaoDianFrom(cView.Location, cView.CkdID); sckFrom.onSetCanKaoHandle += setCanKAOdian; sckFrom.Show(); }
private void mapPel_DoubleClicl(object sender, MouseEventArgs e) { if (panel1.BackgroundImage == null) { return; } if (comboBox4.Text.Equals("") || comboBox5.Text.Equals("")) { return; } //Graphics gs = panel1.CreateGraphics(); Point point = new Point(e.X, e.Y); SetCanKaoDianFrom sckFrom = new SetCanKaoDianFrom(point, null); sckFrom.onSetCanKaoHandle += setCanKAOdian; sckFrom.Show(); }