public static void SetLanguage(List <KeyValue> lanuages) { currentLanuage = lanuages; _currentLanuage = new KeyValueList(); _currentLanuage.AddRange(currentLanuage); }
protected override void OnFormClosed(FormClosedEventArgs e) { switch (e.CloseReason) { case CloseReason.TaskManagerClosing: case CloseReason.ApplicationExitCall: case CloseReason.WindowsShutDown: break; default: if (this.cmbTemplate.Modified) { KeyValueList<string, ListViewColumnInfo[]> list = new KeyValueList<string, ListViewColumnInfo[]>(); list.AddRange(this.cmbTemplate.GetItems<ListViewColumnInfo[]>()); Settings.Default.ColumnTemplates = (list.Count > 0) ? list : null; } break; } base.OnFormClosed(e); }