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

namespace UHFReaderDS7Demo
{
    public partial class fNhSetDlg : Form
    {
        public void _cm(string cm)
        {
            comboBox1.SelectedIndex = Convert.ToInt32(cm);
        }
        public void _ct(string ct)
        {
            comboBox2.Items.Clear();
            for (int i = 0; i < 100; i++)
            {
                comboBox2.Items.Add(Convert.ToString(i));
            }
            comboBox2.SelectedIndex = Convert.ToInt32(ct);
        }
        public string cm
        {
            get
            {
                return this.comboBox1.SelectedIndex.ToString();
            }
        }
        public string ct
        {
            get
            {
                return this.comboBox2.SelectedIndex.ToString();
            }
        }
        public fNhSetDlg()
        {
            InitializeComponent();
        }

        private void fNhSetDlg_Load(object sender, EventArgs e)
        {
            this.Text = ResourceCulture.GetString("hint_network_adv_setting");
            label1.Text = ResourceCulture.GetString("Connection_mode");
            label2.Text = ResourceCulture.GetString("Connection_timeout");
            button1.Text = ResourceCulture.GetString("hint_ok");
            button2.Text = ResourceCulture.GetString("hint_cancel");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }
    }
}