Ejemplo n.º 1
0
 public UserInfo(CheckedUnit.AlarmParameter par, account cu)
 {
     InitializeComponent();
     databaseName = dbMySql.GetDatabaseName();
     parameter    = par;
     strOwnParam  = par.fuc;
     parent       = cu;
 }
Ejemplo n.º 2
0
        /// <summary>
        ///   数据初始化
        /// </summary>

        public void account_Load(object sender, EventArgs e)
        {
            databaseName = dbMySql.GetDatabaseName();
            DataTable table = LoadUser();

            this.dataGridView1.DataSource = table;
            LoadUserHeader();
        }
Ejemplo n.º 3
0
        public SystemSet()
        {
            InitializeComponent();
            databaseName = dbMySql.GetDatabaseName();

//             SetYellow = (double.Parse(ini.ReadValue("NET", "yellow")) / 100.0);
//             SetFense = (double.Parse(ini.ReadValue("NET", "fense")) / 100.0);
//             SetRed = (double.Parse(ini.ReadValue("NET", "red")) / 100.0);
        }
Ejemplo n.º 4
0
        public TcpServerEvent()
        {
            //初始化数据
//            foodDataSetTableAdapters.userTableAdapter tb_UserTableAdapter;
//            foodDataSetTableAdapters.detectioninfoTableAdapter tb_DetectionInfoTableAdapter;
//
//            tb_UserTableAdapter = new FoodServer.foodDataSetTableAdapters.userTableAdapter();
//            tb_UserTableAdapter.Fill(foodDataSet.user);
//
//            tb_DetectionInfoTableAdapter = new foodDataSetTableAdapters.detectioninfoTableAdapter();
//            tb_DetectionInfoTableAdapter.Fill(foodDataSet.detectioninfo);
            databaseName = dbMySql.GetDatabaseName();
        }
        public void Device_Load()
        {
            databaseName = dbMySql.GetDatabaseName();//

            DataSet dataSet = new DataSet();

            dataSet.Clear();
            string sql = "SELECT Device_ID,Device_PassWord,Device_Code, Device_Name,Device_Addr,Device_Type,Device_Ver From device";
            int    ret = database.ReadDataBase(sql, "device", dataSet);

            if (ret == 0)
            {
                System.Data.DataTable dtInfo = new System.Data.DataTable();
                this.dataGridView1.DataSource = dataSet.Tables["device"];
            }
            LoadHeader();
        }
Ejemplo n.º 6
0
 // public TcpSvr svr;
 public TestTcpSvr()
 {
     databasename = dbMySql.GetDatabaseName();
     CreateConnection();
     OpenDataBase();
 }
Ejemplo n.º 7
0
        public AddCheck()
        {
            InitializeComponent();

            databaseName = dbMySql.GetDatabaseName();
        }
 public CollactorConfig()
 {
     //  this.checkBox1.Visible = false;
     InitializeComponent();
     databaseName = dbMySql.GetDatabaseName();
 }
Ejemplo n.º 9
0
 public AddCollection()
 {
     InitializeComponent();
     databasename = dbMySql.GetDatabaseName();
     parameter    = new CollactorManager.AlarmParameter();
 }
Ejemplo n.º 10
0
 public EditChecked()
 {
     InitializeComponent();
     databaseName = dbMySql.GetDatabaseName();
 }
Ejemplo n.º 11
0
 public Login()
 {
     InitializeComponent();
     // this.FormBorderStyle = FormBorderStyle.None;
     databaseName = dbMySql.GetDatabaseName();
 }
Ejemplo n.º 12
0
 public CheckedUnit()
 {
     databaseName = dbMySql.GetDatabaseName();
     InitializeComponent();
 }
Ejemplo n.º 13
0
 public GetResult()
 {
     databaseName = dbMySql.GetDatabaseName();
 }
Ejemplo n.º 14
0
 public ChekPro()
 {
     InitializeComponent();
     databaseName = dbMySql.GetDatabaseName();
 }