1
这个问题是关于c#。情景是,当我点击按钮像文件阅读,数据处理和文件倾销行动将发生。每个操作完成后,我会更新状态(即,文件读取完毕,数据操作完成),其中在UI(FORM-frmTesting)标签代表和活动?
按钮点击事件是
namespace frmTesting
{
public partial class Form1 : Form
{
private void button1_Click_1(object sender, EventArgs e)
{
class1 l_objClass1 = new class1();
l_objClass1.DoOperation();
}
}
public class class1
{
public int DoOperation()
{
ReadTextFile();
ParsingData();
SaveTextFile();
return 0;
}
private int ReadTextFile()
{
//Read the text File
return 0;
}
private int ParsingData()
{
// Data manipulation
return 0;
}
private int SaveTextFile()
{
// save the file
return 0;
}
}
}
是否有可能通过委托和事件....如果你有任何疑问plz回复我
喜,贾斯汀.....你能告诉我的顺序呼叫button_click事件 – user374191 2010-06-23 12:27:40
使用@ user374191 - 我不知道你的意思是什么。 – 2010-06-23 12:32:12
FileRead(EventArgs.Empty); -----怎么可能......只需要一个参数 – user374191 2010-06-23 12:37:38