void IPagePresenter.Apply() { if (currentIdentity == null) { return; } IConnectionParams connectParams = factory.CreateParamsFromIdentity(currentIdentity); model.CreateLogSource(factory, connectParams); SetCurrentIdentity(null); }
void ApplyIndependentLogsMode() { string tmp = ((string)view.ReadControlValue(ControlId.FileSelector)).Trim(); if (tmp == "") { return; } view.WriteControlValue(ControlId.FileSelector, ""); foreach (string fname in FileListUtils.ParseFileList(tmp)) { try { model.CreateLogSource(factory, factory.CreateParams(fname)); } catch (Exception e) { alerts.ShowPopup("Error", string.Format("Failed to create log source for '{0}': {1}", fname, e.Message), AlertFlags.Ok | AlertFlags.WarningIcon); break; } } }
void IPagePresenter.Apply() { model.CreateLogSource(factory, new ConnectionParams()); }