예제 #1
0
        public InterfaceToEve()
        {
            InitializeComponent();

            ProcessChoice?.PreferenceWriteToUI(new ChooseWindowProcessPreference {
                FilterMainModuleFileName = "ExeFile.exe"
            });
        }
예제 #2
0
        public void Present(
            SimpleInterfaceServerDispatcher interfaceServerDispatcher,
            FromProcessMeasurement <Interface.MemoryStruct.IMemoryMeasurement> measurement)
        {
            MeasurementLastHeader?.SetStatus(measurement.MemoryMeasurementLastStatusEnum());

            ProcessHeader?.SetStatus(ProcessChoice.ProcessStatusEnum());

            LicenseDataContext.Dispatcher = interfaceServerDispatcher;

            var sessionDurationRemainingTooShort = !(measurement?.Value).SessionDurationRemainingSufficientToStayExposed();

            SessionDurationRemainingTextBox.Text             = (measurement?.Value?.SessionDurationRemaining?.ToString() ?? "????");
            SessionDurationRemainingTooShortGroup.Visibility = (sessionDurationRemainingTooShort && null != measurement) ? System.Windows.Visibility.Visible : System.Windows.Visibility.Hidden;

            Measurement?.Present(measurement);
        }