大漠调用
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace testdm{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } CDmSoft dm; private void button1_Click(object sender, EventArgs e) { dm = new CDmSoft(); button1.Enabled = false; button2.Enabled = true; button3.Enabled = true; button4.Enabled = true; button5.Enabled = true; } private void button2_Click(object sender, EventArgs e) { MessageBox.Show(dm.Ver()); } private void button3_Click(object sender, EventArgs e) { dm.Dispose(); dm = null; button1.Enabled = true; button2.Enabled = false; button3.Enabled = false; button4.Enabled = false; button5.Enabled = false; } private void button4_Click(object sender, EventArgs e) { MessageBox.Show(dm.GetBasePath()); } private void button5_Click(object sender, EventArgs e) { dm.MoveTo(20,20); } private void button7_Click(object sender, EventArgs e) { //dm.FindPic(0,0,1024,768,f) } }}
评论