ATMLCommonLibrary.controls.ATMLPreviewPanel.Open C# (CSharp) Method

Open() public method

public Open ( ATMLModelLibrary.model.common.Document document ) : void
document ATMLModelLibrary.model.common.Document
return void
        public void Open( Document document )
        {
            if (document != null && !string.IsNullOrEmpty( document.name ))
            {
                int idx = document.name.LastIndexOf( '.' );
                string ext = idx == -1 ? ".txt" : document.name.Substring( idx );
                Open( document.name, ext, document.DocumentContent );
            }
            else
            {
                LogManager.Error( "Missing Document or Document Name" );
            }
        }

Same methods

ATMLPreviewPanel::Open ( FileInfo fileInfo, byte content ) : void
ATMLPreviewPanel::Open ( string fileName, string fileExtension, byte content ) : void