Implémentation du bouton de réinitialisation de l'univers : désassocie
tout les circuits
This commit is contained in:
parent
1bbead8c46
commit
fbeb7e2b76
2 changed files with 15 additions and 0 deletions
|
|
@ -394,5 +394,19 @@ namespace DMX2
|
||||||
}
|
}
|
||||||
MajListeDimmer();
|
MajListeDimmer();
|
||||||
}
|
}
|
||||||
|
protected void OnBtResetClicked (object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int max = 512;
|
||||||
|
|
||||||
|
for(i=0 ;i<max ;i++)
|
||||||
|
{
|
||||||
|
universEdite.Dimmers[i].circuitAssocié = null;
|
||||||
|
universEdite.Dimmers[i].fonctionTransfert = UniversDMX.FTransfer.lineaire;
|
||||||
|
universEdite.Dimmers[i].param1 = 100;
|
||||||
|
}
|
||||||
|
MajListeDimmer();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -375,6 +375,7 @@ namespace DMX2
|
||||||
this.cbUnivers.Changed += new global::System.EventHandler (this.OnCbUniversChanged);
|
this.cbUnivers.Changed += new global::System.EventHandler (this.OnCbUniversChanged);
|
||||||
this.btAdd.Clicked += new global::System.EventHandler (this.OnBtAddClicked);
|
this.btAdd.Clicked += new global::System.EventHandler (this.OnBtAddClicked);
|
||||||
this.btPatchDroit.Clicked += new global::System.EventHandler (this.OnBtPatchDroitClicked);
|
this.btPatchDroit.Clicked += new global::System.EventHandler (this.OnBtPatchDroitClicked);
|
||||||
|
this.btReset.Clicked += new global::System.EventHandler (this.OnBtResetClicked);
|
||||||
this.spinDimmer.ValueChanged += new global::System.EventHandler (this.OnSpinDimmerValueChanged);
|
this.spinDimmer.ValueChanged += new global::System.EventHandler (this.OnSpinDimmerValueChanged);
|
||||||
this.cbCircuit.Changed += new global::System.EventHandler (this.OnCbCircuitChanged);
|
this.cbCircuit.Changed += new global::System.EventHandler (this.OnCbCircuitChanged);
|
||||||
this.cbFT.Changed += new global::System.EventHandler (this.OnCbFTChanged);
|
this.cbFT.Changed += new global::System.EventHandler (this.OnCbFTChanged);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue