Ejemplo n.º 1
0
        public override void AwakeFromNib()
        {
            base.AwakeFromNib();

            // Events
            this.CloseButton.Activated += (object sender, EventArgs e) => {
                this.Close();
                NSApplication.SharedApplication.StopModalWithCode(0);
            };

            this.ClearButton.Activated       += ClearButton_Activated;
            this.StatusButton.Activated      += StatusButton_Activated;
            this.JsonButton.Activated        += JsonButton_Activated;
            this.FriendlyButton.Activated    += FriendlyButton_Activated;
            this.AutoRefreshButton.Activated += AutoRefreshButton_Activated;
            this.ImportButton.Activated      += ImportButton_Activated;
            this.ExportButton.Activated      += ExportButton_Activated;
            this.RefreshButton.Activated     += RefreshButton_Activated;
            this.FilterButton.Activated      += FilterButton_Activated;

            EventsLogTableView.Delegate = new TableDelegate(this);

            _autoRefreshTimer             = new Timer(AutoRefreshTimer_Tick, null, -1, -1);
            _filters                      = new List <FilterCriteriaDto> ();
            ServiceHelper                 = new SuperLoggingHelper();
            AutoRefreshButton.StringValue = "0";
            SetAutoRefreshSetting(false);
            GetSuperLoggingStatus();
            SetSuperLoggingStatus(_status);
            SetFilterText();
            ShowRawView(false);
        }
Ejemplo n.º 2
0
 public SuperLogging()
 {
     InitializeComponent();
     _serverDto      = null;
     _tenant         = null;
     _filters        = new List <FilterCriteriaDto>();
     _serviceHelper  = new SuperLoggingHelper();
     importEventLogs = true;
 }
Ejemplo n.º 3
0
 public SuperLogging(ServerDto serverDto, string tenant)
 {
     InitializeComponent();
     _serverDto      = serverDto;
     _tenant         = tenant;
     _filters        = new List <FilterCriteriaDto>();
     _serviceHelper  = new SuperLoggingHelper();
     importEventLogs = false;
 }