using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AT288Lib.Net;

namespace AT288Demo.Net.Dialog
{
    public partial class ReadMemoryDialog : Form
    {
        #region 생성자
        public ReadMemoryDialog()
        {
            InitializeComponent();
        }
        #endregion

        #region 속성
        public MemoryType Bank { get { return (MemoryType)cbBank.SelectedIndex; } set { cbBank.SelectedIndex = (int)value; } }
        public int Offset { get { return cbOffset.SelectedIndex; } set { cbOffset.SelectedIndex = value; } }
        public int Length { get { return cbLength.SelectedIndex + 1; } set { cbLength.SelectedIndex = value - 1; } }
        #endregion

        #region 이벤트 처리기
        private void btnOK_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }
        #endregion
    }
}
