Example #1
0
        protected virtual void OnBrowseFile(BrowseFileEventArgs e)
        {
            var Handler = BrowseFile;

            if (Handler != null)
            {
                Handler(this, e);
            }
        }
Example #2
0
        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);
        }