예제 #1
0
        public SettingForm(DisplaySetting setting)
        {
            InitializeComponent();
            m_Setting = setting;

            // 表示を反映
            cBDispColor.Checked       = m_Setting.ChannelColor;
            cBUsingStreamQbit.Checked = m_Setting.UsingStreamQbit;

            switch (m_Setting.MovingMode)
            {
            case MovingScale.Frame:
                rBMoveFrame.Checked = true;
                break;

            case MovingScale.Byte:
                rBMoveByte.Checked = true;
                break;
            }

            switch (m_Setting.OffsetFrom)
            {
            case OffsetOrigin.StreamTop:
                rBFromStreamTop.Checked = true;
                break;

            case OffsetOrigin.FileTop:
                rBFromFileTop.Checked = true;
                break;
            }

            switch (m_Setting.StreamScale)
            {
            case DisplayStreamScale.Bit8:
                rB8bit.Checked = true;
                break;

            case DisplayStreamScale.Bit16:
                rB16bit.Checked = true;
                break;

            case DisplayStreamScale.Bit24:
                rB24bit.Checked = true;
                break;

            case DisplayStreamScale.Bit32:
                rB32bit.Checked = true;
                break;
            }
        }
예제 #2
0
 public DisplayData()
 {
     setting = new DisplaySetting();
     maxLine = 0;
 }