private void _onLoad(object sender, EventArgs e) { cmbType.DataSource = Enum.GetValues(typeof(DiagnosticsTaskType)); if (_taskId.IsEmpty) { return; } var req = new GetDiagnosticsTaskById(); req.TaskId = _taskId; SendRequest(req); }
internal void Handle(GetDiagnosticsTaskById input) { using (var dbConn = DatabaseManager.DbConn()) { var task = dbConn.ExecuteBpl(new DiagnosticsTaskGetById { TaskId = input.TaskId }); Reply(task); } }