Open a File Dialog in a customize rule
Paolo Manfrin
Sometimes I get the request how to show an OpenFileDialog in a customize rule.
Here the solution!
SwissAddonFramework.Utils.Windows.OpenFileDialog dialog = new SwissAddonFramework.Utils.Windows.OpenFileDialog();
dialog.Filter = "Text File |*.txt";
SwissAddonFramework.Utils.Windows.OpenFileDialog.FileSetHandler ev = null;
ev = delegate(string path)
{
SwissAddonFramework.Messaging.StatusBar.WriteSucess(path);
// your code here...
};
dialog.FileSetEvent += ev;
dialog.ShowDialog();
return;
Enjoy...
paolo
0
Please sign in to leave a comment.
Comments
0 comments