protected virtual void OnBrowseFile(BrowseFileEventArgs e) { var Handler = BrowseFile; if (Handler != null) { Handler(this, e); } }
public override void Execute(object vpnType) { var OFd = new OpenFileDialog(); OFd.Multiselect = false; if (OFd.ShowDialog() == false) { return; } var ev = new BrowseFileEventArgs(); ev.BrowsePath = OFd.FileName; ev.BrowseSender = vpnType.ToString(); OnBrowseFile(ev); }