public object GetOsd(int o, enumOsd k, bool online) { if (this.Osd != null) { object obj = null; Dictionary <string, string> dic = online == true?this.LoadOsd()["osd" + o] : this.Osd["osd" + o]; switch (k) { case enumOsd.enable: case enumOsd.type: case enumOsd.x: case enumOsd.y: case enumOsd.alpha: case enumOsd.font_size: case enumOsd.color: case enumOsd.bcolor: case enumOsd.txt: case enumOsd.bmp: obj = dic[k.ToString()]; break; default: break; } return(obj); } return(null); }
public object GetOsd(int o, enumOsd k) { return(this.GetOsd(o, k, false)); }