📄 modevalue.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Common;
namespace TreeTest
{
public partial class ModeValue : TreeTest.ModeBase
{
public ModeValue()
{
InitializeComponent();
}
public override Mode Mode { get { return Mode.Value; } }
public override INode<Element> CurrentNode
{
set
{
base.CurrentNode = value;
string str_path = "";
INode<Element> n = value;
// string temp_str = n.ToString().Substring(0, 1);
int temp_depth = n.Depth;
if (temp_depth == 2) //depth=2,frame node
{
HomogeneousTexture.Text = n._frame._HT.ToString();
EdgeHistogram.Text = n._frame.EdgeHistogram.ToString();
RegionShape.Text = n._frame._RS.ToString();
ContourShape.Text = n._frame._COS.ToString();
}
else if (temp_depth == 1) //depth=1,shot node
{
TBFaceFeature.Text = n._shot.face_feature.ToString();
TBDuration.Text = n._shot.duration.ToString();
TBLocation.Text = n._shot.location.ToString();
TBShotImportance.Text = n._shot.shot_Importance.ToString();
}
else if (temp_depth == 0)
{
TBWholeStory.Text = n._story.wholestory.ToString();
TBShotNumber.Text = n._story.shot_number.ToString();
TBRelatedPlayer.Text = n._story.Related_player.ToString();
TBPlayType.Text = n._story.Play_type.ToString();
}
while (n.Parent != null)
{
str_path += n.ToString();
n = n.Parent;
}
string_select.Text = str_path;
}
}
private void ModeValue_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -