Esempio n. 1
0
        private void AssetPicker_Load(object sender, EventArgs e)
        {
            var asset = _migrationEngine.GetAsset(0);

            var rootNode = new TreeNode("/")
            {
                ImageIndex = Common.GetImageIndex(CmsAssetType.Folder),
                Tag        = asset,
                Text       = "/"
            };

            rootNode.SelectedImageIndex = rootNode.ImageIndex;
            rootNode.Nodes.Add(LoadingNode());
            LoadChildrenBackground(rootNode);
            treeViewAssets.Nodes.Add(rootNode);
        }
        private void WorkflowPicker_Load(object sender, EventArgs e)
        {
            comboBox1.ValueMember   = "Key";
            comboBox1.DisplayMember = "Value";

            comboBox1.DataSource = _workflows.Select(w => new KeyValuePair <int, string>(w.Key, _migrationEngine.GetAsset(w.Value.AssetId).FullPath)).ToList();
        }