//string _statusText; //public string StatusLabelText //{ // get // { // return _statusText; // } // set // { // _statusText = value; // StatusLabelArgs sla = new StatusLabelArgs(); // sla.Texto = _statusText; // StatusLabelChanged(this, sla); // } //} //Color _statusColor; //public Color StatusLabelColor //{ // get // { // return _statusColor; // } // set // { // _statusColor = value; // StatusLabelArgs sla = new StatusLabelArgs(); // } //} public void SetStatusText(string texto, Color color, bool agregarHora) { StatusLabelArgs sla = new StatusLabelArgs(); sla.Color = color; sla.Texto = texto; sla.AgregarHora = agregarHora; StatusLabelChanged(this, sla); }
private void StatusTextChanged(object sender, StatusLabelArgs e) { tsslabel.Text = e.Texto; tsslabel.ForeColor = e.Color; //agregar hora }