コード例 #1
0
ファイル: PackageCreator.cs プロジェクト: MOGwareSupport/MOG
        private void UpdateSyncTargetTree()
        {
            // Attempt to drill to the specified path
            string relativeSyncTargetPath = DosUtils.PathMakeRelativePath(this.SyncTargetTreeView.MOGRootNode.FullPath, SyncTargetTextBox.Text);

            this.SyncTargetTreeView.MOGSelectedNode = MogUtil_ClassificationTrees.FindAndExpandTreeNodeFromFullPath(this.SyncTargetTreeView.MOGRootNode.Nodes, "\\", relativeSyncTargetPath);
        }
コード例 #2
0
ファイル: PackageCreator.cs プロジェクト: MOGwareSupport/MOG
        private void UpdateClassificationTree()
        {
            // Attempt to drill to the specified path
            string classification = ClassificationTextBox.Text;

            // Check how this classifciation will impact the SyncTargetTree?
            MOG_Properties props = new MOG_Properties(Classification);

            if (props.IsPackagedAsset)
            {
                EnableSyncTargetTree(false);
            }
            else if (props.SyncFiles)
            {
                EnableSyncTargetTree(true);
            }
            else
            {
                EnableSyncTargetTree(false);
            }

            // Check if we have nothing selected?  or
            // Check if we have the wrong thing selected?
            if (this.ClassificationTreeView.SelectedNode == null ||
                string.Compare(this.ClassificationTreeView.SelectedNode.FullPath, classification, true) != 0)
            {
                // Locate and select the appropriate node in the classification tree
                this.ClassificationTreeView.SelectedNode = MogUtil_ClassificationTrees.FindAndExpandTreeNodeFromFullPath(this.ClassificationTreeView.Nodes, "~", classification);
            }
        }
コード例 #3
0
        /// Build a node within the confirm treeView of assets to confirm
        /// </summary>
        /// <param name="filename"></param>
        /// <param name="fullFilename"></param>
        private void BuildMogFilenameNode(MOG_Filename filename, string fullFilename, string label)
        {
            TreeNode node = MogUtil_ClassificationTrees.CreateAndExpandTreeNodeFullPath(ConfirmTreeView, null, this.LabelTreeDelimiter, label);

            if (node != null)
            {
                node.Tag     = fullFilename;
                node.Checked = true;
            }
        }