123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace Aitex.Core.Backend
- {
- public partial class AOCtrl : UserControl
- {
- public AOCtrl()
- {
- InitializeComponent();
- }
- public void SetName(string name)
- {
- labelName.Text = name;
- }
- /// <summary>
- /// set value
- /// </summary>
- /// <param name="value"></param>
- public void SetValue(float value)
- {
- string disp = String.Format("{0:f2}", value);
- if (textBoxCurr.Text != disp)
- textBoxCurr.Text = disp;
- }
- }
- }
|