private void pbImg_MouseUp(object sender, MouseEventArgs e) { if (tools != null) { //if (sType != "Eraser") //{ // var frm = new FrmInput(); // frm.ShowDialog(); // length = frm.MyLen; // frm.Dispose(); //} //if (!string.IsNullOrEmpty(length)) //{ // DrawNumber(length, e.Location, tools.DrawTools_Graphics); //} tools.EndDraw(); } }