コード例 #1
0
ファイル: Import.cs プロジェクト: ShadySheikah/IfTextEditor
        private void SetTextboxValue()
        {
            Serializer ySerializer = new SerializerBuilder().WithTypeConverter(new ContainerTypeConverter()).Build();

            if (RB_ScopeFile.Checked)
            {
                TB_Input.Text = RB_FormatPlaintext.Checked ? fileCont.ToString() : ySerializer.Serialize(fileCont);
            }
            else
            {
                TB_Input.Text = fileCont.Messages[msgIndex].ToString(false);
            }
        }