Exemplo n.º 1
0
        public ExportCommand(Storage storage, IExportableTableObject table)
        {
            Image    = Resources.shopping_cart16x16;
            Text     = CultureService.Instance.GetString(CultureText.menuItem_Export_Text);
            _storage = storage;

            _table      = table;
            _exportForm = new ExportForm();
        }
Exemplo n.º 2
0
        public ExportCommand(Storage storage, IExportableTableObject table)
        {
            Image    = Resources.shopping_cart16x16;
            Text     = CultureService.Instance.GetString(CultureText.menuItem_Export_Text);
            _storage = storage;

            EventAggregator.Instance.Subscribe <TreeViewSelectionChangedAppEvent>(e =>
            {
                if (e.SelectedNode is LogFileNameTreeNode)
                {
                    Visible = true;
                }
                else
                {
                    Visible = false;
                }
            });

            _table      = table;
            _exportForm = new ExportForm();
        }