打开文件:
var attachment = Dialogs.ShowOpenFileDialog(form.Resources["attachment"], form.Resources["AddAttachment"]);
form.Resources["attachment"] 内容:
Document (*.document)|*.txt;*.docx;*.doc;*.xlsx;*.pdf|Txt (*.txt)|*.txt|Word (*.docx,*.doc)|*.docx;*.doc|Excel (*.xlsx)|*.xlsx|PDF(*.pdf)|*.pdf
其中,同一名称下,多格式: Document (*.document)|*.txt;*.docx;*.doc;*.xlsx;*.pdf
Document (*.document)|*.txt;*.docx;*.doc;*.xlsx;*.pdf|Txt (*.txt)|*.txt|Word (*.docx,*.doc)|*.docx;*.doc|Excel (*.xlsx)|*.xlsx|PDF(*.pdf)|*.pdf
其中,同一名称下,多格式: Document (*.document)|*.txt;*.docx;*.doc;*.xlsx;*.pdf
All (*.*)|*.docx;*.doc;*.xlsx;*.xm;*.pdf;*.txt|Word(*.docx,*.doc)|*.docx;*.doc|Excel(*.xlsx,*.xls)|*.xlsx;*.xls|XML(*.xml)|*.xml|PDF(*.pdf)|*.pdf|TXT(*.txt)|*.txt
All (*.*)|*.*|Word(*.docx,*.doc)|*.docx;*.doc|Excel(*.xlsx,*.xls)|*.xlsx;*.xls|XML(*.xml)|*.xml|PDF(*.pdf)|*.pdf|TXT(*.txt)|*.txt