public SettingsDialog(HistoryView historyView) { if (historyView == null) throw new ArgumentNullException(); _historyView = historyView; InitializeComponent(); _looks[HistoryType.Answer] = historyView.GetHistoryLook(HistoryType.Answer).Clone(); _looks[HistoryType.Echo] = historyView.GetHistoryLook(HistoryType.Echo).Clone(); _looks[HistoryType.Error] = historyView.GetHistoryLook(HistoryType.Error).Clone(); _looks[HistoryType.Info] = historyView.GetHistoryLook(HistoryType.Info).Clone(); _looks[HistoryType.HelpTopic] = historyView.GetHistoryLook(HistoryType.HelpTopic).Clone(); _looks[HistoryType.HelpBody] = historyView.GetHistoryLook(HistoryType.HelpBody).Clone(); _looks[HistoryType.Answer].Custom = false; _looks[HistoryType.Echo].Custom = false; _looks[HistoryType.Error].Custom = false; _looks[HistoryType.Info].Custom = false; _looks[HistoryType.HelpTopic].Custom = false; _looks[HistoryType.HelpBody].Custom = false; }
public HelpDialog(HistoryView historyView) { _historyView = historyView; InitializeComponent(); }