public void Open(Action <DialogResult> callback)
        {
            // TODO: Implement the choosing a directory
            bool success = WinInterop.GetOpenFileName(_openFileName);

            callback(new DialogResult()
            {
                FileName = _openFileName.file,
                Success  = success
            });
        }
Exemple #2
0
        public void Open(string filter, Action <DialogResult> callback)
        {
            _openFileName.filter = WinUtil.ConvertFilter(filter);
            bool success = WinInterop.GetOpenFileName(_openFileName);

            callback(new DialogResult()
            {
                FileName = _openFileName.file,
                Success  = success
            });
        }