public FilterBaseWindow() { try { InitializeComponent(); FilterBase = FilterBase ?? new FilterBaseModel(); WriterList = WriterList ?? new List <string>(); WriterList.Add(string.Empty); var templist = TraceListManager.GetWriters(); if (templist != null) { WriterList.AddRange(templist.OrderBy(w => w)); } this.DataContext = this; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public DeleteRangeWindow() { InitializeComponent(); try { FilterBase = new FilterBaseModel(); WriterList = TraceListManager.GetWriters() ?? new List <string>(); this.DataContext = this; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }