public GetData ( string format, int index ) : |
||
format | string | The format of the data to retrieve. See |
index | int | The index of the data to retrieve. |
Результат |
private void Parse() { if (!_isValid) { throw new Exception("DropData does not contain any files"); } if (!_parsed) { if (!_dataObject.GetDataPresent("FileDrop")) { _oleDropData = new OleDropData(_dataObject); if (_dataObject.GetDataPresent("FileGroupDescriptorW")) { _filenames = (string[])_oleDropData.GetData("FileGroupDescriptorW"); } else { _filenames = (string[])_oleDropData.GetData("FileGroupDescriptor"); } } else { _filenames = (string[])_dataObject.GetData("FileDrop"); } _parsed = true; } }
private void InitialiseStreams() { if (_oleDropData != null && _streams == null) { _streams = (MemoryStream[])_oleDropData.GetData("FileContents"); } }
private void Parse() { if (!_isValid) throw new Exception("DropData does not contain any files"); if (!_parsed) { if (!_dataObject.GetDataPresent("FileDrop")) { _oleDropData = new OleDropData(_dataObject); if (_dataObject.GetDataPresent("FileGroupDescriptorW")) _filenames = (string[])_oleDropData.GetData("FileGroupDescriptorW"); else _filenames = (string[])_oleDropData.GetData("FileGroupDescriptor"); } else { _filenames = (string[])_dataObject.GetData("FileDrop"); } _parsed = true; } }