コード例 #1
0
        public MeasureParamPanel()
        {
            InitializeComponent();

            for (int i = 0; i < (int)ConvertFormats.FormatCount; i++)
            {
                comboBox1.Items.Add(((ConvertFormats)i).ToString());
            }
            comboBox1.SelectedIndex = 0;
            Addr   = 0;
            Format = ConvertFormats.Percent;
        }
コード例 #2
0
        public MeasureParam(string ParameterName, string Addr, string Format)
        {
            this.ParameterName = ParameterName;

            try
            {
                addr = (ushort)ConvertFuncs.StrToShort(Addr);
            }
            catch
            {
                addr = 0;
            }


            try
            {
                format = Format.ToConvertFormats();
            }
            catch
            {
                format = ConvertFormats.Percent;
            }
        }
コード例 #3
0
 public MeasureParam(string ParameterName, ushort Addr, ConvertFormats Format)
 {
     this.ParameterName = ParameterName;
     this.addr          = Addr;
     this.format        = Format;
 }