public string getNetworkErrorString(int id) { StringsData found = null; if (stringsConfig.TryGetValue(30000 + id, out found)) { return(found.txt); } else { if (stringsConfig.TryGetValue(id, out found)) { return(found.txt); } else { return(string.Empty); } } }
public Form1() { InitializeComponent(); this.BackColor = Color.White; Steema.TeeGrid.Themes.GridThemes.Flat.ApplyTo(tTeeGrid1.Grid); tTeeGrid1.Rows.RowLines.Visible = true; Data = new StringsData(30, 100); FillCells(); tTeeGrid1.Data = Data; lbColumns.SelectedIndex = -1; FillBox(); SetLocked(tTeeGrid1.Columns["A"], ColumnLocked.Left); SetLocked(tTeeGrid1.Columns["B"], ColumnLocked.Right); lbColumns.SelectedIndex = 0; }