private string _GetCode(InformerCode code) { string cfmt = _fmt.Where(o => (o.Key == code)).Select(o => o.Value).FirstOrDefault(); if (string.IsNullOrWhiteSpace(cfmt)) { return(""); } return(string.Format( cfmt, this._url, this._part, this._id, this._tag, new Random(DateTime.Now.Millisecond).Next(0, Int32.MaxValue) )); }
private void _SetCode(InformerCode code) { this.LLControlCode.Text = this._GetCode(code); this.LLControlCode.Visible = true; }