コード例 #1
0
        void IPagePresenter.Apply()
        {
            if (currentIdentity == null)
            {
                return;
            }
            IConnectionParams connectParams = factory.CreateParamsFromIdentity(currentIdentity);

            model.CreateLogSource(factory, connectParams);
            SetCurrentIdentity(null);
        }
コード例 #2
0
        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;
                }
            }
        }
コード例 #3
0
 void IPagePresenter.Apply()
 {
     model.CreateLogSource(factory, new ConnectionParams());
 }