private void DrawPointButton_Click(object sender, EventArgs e) { MyDrawObject.DrawMode = DrawMode.Point; MyDrawObject.IsEnabled = true; }