示例#1
0
        public bool StartBrowseDialog(IWin32Window owner, string filter)
        {
            if (!InvokeEvent(owner, PreBrowse))
            {
                return(false);
            }

            using (var form = new FormBrowse(filter))
                form.ShowDialog(owner);

            InvokeEvent(owner, PostBrowse);

            return(true);
        }
示例#2
0
        public bool StartBrowseDialog(string filter)
        {
            if (!InvokeEvent(PreBrowse))
            {
                return(false);
            }

            var form = new FormBrowse(filter);

            form.ShowDialog();

            InvokeEvent(PostBrowse);

            return(true);
        }
示例#3
0
        public bool StartBrowseDialog(IWin32Window owner, string filter)
        {
            if (!InvokeEvent(owner, PreBrowse))
                return false;

            using (var form = new FormBrowse(this, filter))
                form.ShowDialog(owner);

            InvokeEvent(owner, PostBrowse);

            return true;
        }