コード例 #1
0
ファイル: GroupEditor.cs プロジェクト: Emilgardis/falloutsnip
 public GroupEditor(GroupRecord gr)
 {
     this.gr = gr;
     this.InitializeComponent();
     Icon = Resources.fosnip;
     this.cmbGroupType.ContextMenu = new ContextMenu();
     this.cmbGroupType.SelectedIndex = (int)gr.groupType;
     this.tbRecType.Text = gr.ContentsType;
     byte[] data = gr.GetData();
     this.tbX.Text = TypeConverter.h2ss(data[2], data[3]).ToString();
     this.tbY.Text = TypeConverter.h2ss(data[0], data[1]).ToString();
     this.tbBlock.Text = TypeConverter.h2i(data[0], data[1], data[2], data[3]).ToString();
     this.tbParent.Text = TypeConverter.h2i(data[0], data[1], data[2], data[3]).ToString("X8");
     this.tbDateStamp.Text = gr.dateStamp.ToString("X8");
     this.tbFlags.Text = gr.flags.ToString("X8");
 }