110,532
社区成员
发帖
与我相关
我的任务
分享
protected void OnOpen(Object o,EventArgs ea){
MessageBox.Show("aaa");
using(OpenFileDialog ofd=new OpenFileDialog ()){
MessageBox.Show("bbb");
ofd.Filter="XML资源文件(*.ResX)|*.resx";
MessageBox.Show("ccc");
if(DialogResult.OK==ofd.ShowDialog()){
MessageBox.Show("ddd");.........
using (AddDialog ad=new AddDialog()){
if(DialogResult.OK==ad.ShowDialog()){
//定义部分
public class AddDialog:Dialog{
public TextBox _tb1,_tb2;
public AddDialog(){
Text="Add";
using System;
using System.Windows.Forms;
public class a{
public static void Main(){
using(OpenFileDialog ofd = new OpenFileDialog()){
ofd.Filter="All|*.*";
MessageBox.Show(ofd.Filter);
MessageBox.Show((DialogResult.OK==ofd.ShowDialog()).ToString());
}
}
}