示例#1
0
        public void View(string path, ContextObject context)
        {
            _panel = new CsvViewerPanel();

            context.ViewerContent = _panel;
            context.Title         = $"{Path.GetFileName(path)}";
            _panel.LoadFile(path);

            context.IsBusy = false;
        }
示例#2
0
        public void View(string path, ContextObject context)
        {
            //edit by gh
            _panel = new CsvViewerPanel(path, context);
            //_panel = new CsvViewerPanel();
            context.ViewerContent = _panel;
            context.Title         = $"{Path.GetFileName(path)}";

            /*
             * _panel.LoadFile(path);
             *
             * context.IsBusy = false;
             */
        }
示例#3
0
        public void Cleanup()
        {
            GC.SuppressFinalize(this);

            _panel = null;
        }