Ejemplo n.º 1
0
        public void setBDDServiceMode(int state)
        {
            DataRow dr = TablesUtilities.getVarFromId("1", db.Ds);

            object[] array = dr.ItemArray;

            array[2] = state.ToString();

            db.Ds.Dataset.Tables["vars"].Rows.Find(dr.ItemArray[0].ToString()).ItemArray = array;

            db.Ds.updateDatabase(new string[] { "vars" });
        }
Ejemplo n.º 2
0
 public void setServiceMode()
 {
     if ((string)TablesUtilities.getVarFromId("1", database.Ds).ItemArray[2] == "1")
     {
         serviceStatusLabel.Text      = "Etat du service: En cours";
         serviceStatusLabel.ForeColor = Color.Green;
     }
     else
     {
         serviceStatusLabel.Text      = "Etat du service: Aucun service en cours";
         serviceStatusLabel.ForeColor = SystemColors.ControlText;
     }
 }
Ejemplo n.º 3
0
 public void setServiceMode()
 {
     if ((string)TablesUtilities.getVarFromId("1", db.Ds).ItemArray[2] == "0")
     {
         messageLabel.Visible   = false;
         rowActionPanel.Enabled = true;
     }
     else
     {
         messageLabel.Visible   = true;
         rowActionPanel.Enabled = false;
     }
 }
Ejemplo n.º 4
0
        public void setServiceMode()
        {
            int state = int.Parse(TablesUtilities.getVarFromId("1", db.Ds).ItemArray[2].ToString());

            setServiceMode(state);
        }